You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/getting-started/content.md
+3-16
Original file line number
Diff line number
Diff line change
@@ -146,24 +146,11 @@ The Portenta Max Carrier carries a cellular modem SARA-R412M-02B to carry out ta
146
146
147
147
***Please DO NOT USE the cellular modem without the external antenna attached to the SMA connector. It might damage the Portenta Max Carrier if used without.***
148
148
149
-
To begin using the modem, it will require some packages to be installed beforehand. Given the network technology, Cat-M1 and NB-IoT, it will require the use of `GSMClient` library. If the library is not installed or needs to be updated, please make sure to have the `Arduino Mbed OS Portenta Core` up to date from the board manager.
149
+
To begin using the modem, it will require some packages to be installed beforehand. Given the network technology, Cat-M1 and NB-IoT, it will require the use of the `MKRNB` library. Please also make sure to have the `Arduino Mbed OS Portenta Core` up to date from the board manager.
150
150
151
-
We will use the `arduino_secrets.h` header file for PIN and APN configuration of the SIM card that will be inserted into microSIM slot on-board Portenta Max Carrier. Following code pieces are to be used to initialize the GSM and set the general network configuration.
151
+
We will use the `arduino_secrets.h` header file for PIN and APN configuration of the SIM card that will be inserted into microSIM slot on-board Portenta Max Carrier.
152
152
153
-
```cpp
154
-
// Initializes GSM
155
-
GSM.begin(pin, apn, username, pass, CATNB);
156
-
157
-
// Establishes connection to desired server
158
-
client.connect(server, port);
159
-
```
160
-
161
-
Inside the `GSM.begin(pin, apn, username, pass, CATNB)` function, where CATNB is the fifth argument of the function, must be defined to which network technology will be used.
162
-
163
-
- To use the NB-IoT network technology, please use `CATNB` as the argument
164
-
- To use the Cat-M1 network technology, please use `CATM1` as the argument
165
-
166
-
For the `client.connect(server, port);` function, the port is predefined as `80`. It is required to define the server, and the port argument if necessary, to successfully carry out the operation.
153
+
If you want to learn how to run a sketch with this library or how to switch between Cat M1 and NB IoT, please take a look at our [Portenta Max Carrier and Portenta H7 Cat M1/NB IoT tutorial](https://docs.arduino.cc/tutorials/portenta-max-carrier/catM1-and-NBIoT)
167
154
168
155
The antenna connectors for both LoRaWAN® and cellular modem with the microSIM slot are indicated as the following image:
0 commit comments