VintageNetQMI (vintage_net_qmi v0.2.7) View Source
Use a QMI-enabled cellular modem with VintageNet
This module is not intended to be called directly but via calls to VintageNet
. Here's a
typical example:
VintageNet.configure(
"wwan0",
%{
type: VintageNetQMI,
vintage_net_qmi: %{
service_providers: [%{apn: "super"}]
}
}
)
The following keys are supported
:service_providers
- This is a list of service provider information
The :service_providers
key should be set to information provided by each of
your service providers. Currently only the first service provider is used.
Information for each service provider is a map with some or all of the following fields:
:apn
(required) - e.g.,"access_point_name"
Your service provider should provide you with the information that you need to connect. Often it is just an APN. The Gnome project provides a database of service provider information that may also be useful.
Here's an example with a service provider list:
%{
type: VintageNetQMI,
vintage_net_qmi: %{
service_providers: [
%{apn: "wireless.twilio.com"}
],
}
}
Link to this section Summary
Functions
Name of the the QMI server that VintageNetQMI uses
Configure a cellular modem using an APN
Link to this section Functions
Specs
qmi_name(VintageNet.ifname()) :: atom()
Name of the the QMI server that VintageNetQMI uses
Specs
Configure a cellular modem using an APN
iex> VintageNetQMI.quick_configure("an_apn")
:ok