From c753e14b2416af5ee70790f53cd5dc632db6057e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?BenjaminDanneg=C3=A5rd?= Date: Thu, 19 May 2022 15:22:23 +0200 Subject: [PATCH] Changed library mentioned --- .../tutorials/getting-started/content.md | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/getting-started/content.md b/content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/getting-started/content.md index 1ac714cd85..f63a8c0e38 100644 --- a/content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/getting-started/content.md +++ b/content/hardware/04.pro/carriers/portenta-max-carrier/tutorials/getting-started/content.md @@ -146,24 +146,11 @@ The Portenta Max Carrier carries a cellular modem SARA-R412M-02B to carry out ta ***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.*** -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. +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. -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. +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. -```cpp -// Initializes GSM -GSM.begin(pin, apn, username, pass, CATNB); - -// Establishes connection to desired server -client.connect(server, port); -``` - -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. - -- To use the NB-IoT network technology, please use `CATNB` as the argument -- To use the Cat-M1 network technology, please use `CATM1` as the argument - -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. +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) The antenna connectors for both LoRaWAN® and cellular modem with the microSIM slot are indicated as the following image: