Skip to content

Commit 9cb4df3

Browse files
Merge pull request #248 from arduino/benjamindannegard/max-carrier-gs-fix
benjamindannegard/ Fix-max-carrier-h7-getting-started
2 parents f057c17 + c753e14 commit 9cb4df3

File tree

1 file changed

+3
-16
lines changed
  • content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/getting-started

1 file changed

+3
-16
lines changed

content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/getting-started/content.md

+3-16
Original file line numberDiff line numberDiff line change
@@ -146,24 +146,11 @@ The Portenta Max Carrier carries a cellular modem SARA-R412M-02B to carry out ta
146146

147147
***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.***
148148

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.
150150

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.
152152

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)
167154

168155
The antenna connectors for both LoRaWAN® and cellular modem with the microSIM slot are indicated as the following image:
169156

0 commit comments

Comments
 (0)