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: README.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,31 +15,30 @@ The code will manage the LTE-M, GSM and WiFi connection (depending on currently
15
15
| Arduino MKR 1010 WiFi | OK | OK | - |
16
16
| Arduino MKR 1400 GSM | OK | OK | OK |
17
17
| Arduino MKR 1500 NB | OK | OK | OK |
18
-
| Arduino MKR VIDOR 4000 | OK | OK*| - |
18
+
| Arduino MKR VIDOR 4000 | OK | OK | - |
19
19
| Arduino Nano 33 IoT | OK | OK | - |
20
-
| ESP8266 Boards | OK |OK**| - |
20
+
| ESP8266 Boards | OK |OPT<sup>1)</sup>| - |
21
21
| ESP32 Boards | OK | OK | - |
22
-
| Adafruit Feather M0 WiFi| OK |OK| - |
22
+
| Adafruit Feather M0 WiFi| OK |-| - |
23
23
| Adafruit Feather 32u4 | OK | - | OK |
24
24
25
25
## Prerequisites/dependecies ##
26
-
This code needs 2 ~~3~~external libraries to run, that you can install using the built-in [Library Manager](https://www.arduino.cc/en/guide/libraries) of the Arduino IDE.
26
+
This code needs external libraries to run, that you can install using the built-in [Library Manager](https://www.arduino.cc/en/guide/libraries) of the Arduino IDE.
27
27
28
28
#### Libraries provided by Arduino
29
29
-[MKRNB](https://www.arduino.cc/en/Reference/MKRNB) in order to handle the LTE-M module on **Arduino MKR NB 1500**
30
30
-[MKRGSM](https://www.arduino.cc/en/Reference/MKRGSM) in order to handle the GSM module on **Arduino MKR GSM 1400**
31
31
-[WiFiNINA](https://www.arduino.cc/en/Reference/WiFiNINA) in order to handle WiFi module on **Arduino MKRWIFI 1010** and **Arduino Nano 33 IoT**
32
32
-[WiFi101](https://www.arduino.cc/en/Reference/WiFi101) in order to handle WiFi module on **Arduino MKR 1000**
33
33
34
-
-~~[ArduinoMqttClient](https://github.com/arduino-libraries/ArduinoMqttClient) that implements a MQTT client for Arduino~~*
34
+
-~~[ArduinoMqttClient](https://github.com/arduino-libraries/ArduinoMqttClient) that implements a MQTT client for Arduino~~<sup>2)</sup>
35
35
36
-
\* currently integrated into this SDK, until https://github.com/arduino-libraries/ArduinoMqttClient/pull/44 fix will be merged
36
+
<sup>2)</sup> currently integrated into this SDK, until https://github.com/arduino-libraries/ArduinoMqttClient/pull/44 fix will be merged
37
37
38
38
#### Library for ESP8266 and ESP32 boards
39
39
-[PubSubClient](https://pubsubclient.knolleary.net/) library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT
40
40
41
-
#### Library developed by Benoît Blanchon*
42
-
*mandatory for both Arduino, ESP and Adafruit boards
41
+
#### Library developed by Benoît Blanchon (mandatory for both Arduino, ESP and Adafruit boards)
43
42
-[ArduinoJson](https://arduinojson.org/), a powerful library used to parse, store and handle JSON easily
44
43
45
44
#### SAMD21 Arduino core
@@ -53,20 +52,21 @@ This code needs 2 ~~3~~ external libraries to run, that you can install using th
53
52
4. In the **'src/arduino_secrets.h'** file :
54
53
- Paste it as initialization value for the `SECRET_LIVEOBJECTS_API_KEY` variable in the 'arduino_secrets.h' file -keep the double quotes!
55
54
56
-
In case of feather 32u4 you have to change type of this variable to char* from String
55
+
-In case of feather 32u4 you have to change type of this variable to *char** from *String*.
57
56
- Fill in the connection(WIFI or GSM) credentials if needed (pin code, APN information, etc). In case of GSM connection, most of the time, APN will set up automatically. Your SIM card may have a default pin code (like "0000"), unless you deactivated it using the [Pin management](https://github.com/arduino-libraries/MKRNB/blob/master/examples/Tools/PinManagement/PinManagement.ino) sketch, provided with the MKRNB library.
58
57
59
-
In case of feather32u4 you have to change APN in library file LiveObjectsFona.cpp
58
+
-In case of Feather 32u4 you have to change APN in library file LiveObjectsFona.cpp
60
59
61
-
Line ~165 - m_Fona.setGPRSNetworkSettings(F("APN"), F(""), F(""));
5. Import library into the Arduino IDE, to do this select: *Sketch-> Include Library-> Add .ZIP Library* and select folder which you cloned in the previous step(actually it doesn't need to be .ZIP-ed to be imported). After successful import you should see example sketches in *File->Examples->LiveObjectsSDK*
63
62
64
63
6. Modules MKR 1010 WiFi, MKR VIDOR 4000, Nano 33 IoT should work "out of the box" using MQTTS. If not, you need to upgrade theirs firmwares and certificates using embedded updater in Arduino IDE:
65
-
*Tools -> WiFi101/WiFiNINA Firmware Updater*.
64
+
*Tools -> WiFi101/WiFiNINA Firmware Updater*.
65
+
**Due to bug, MKR VIDOR4000 needs WiFiNINA library at the most v.1.8.5.**
66
66
67
-
**Optionally for ESP8266 for getting MQTTS:
67
+
<sup>1)</sup> *Optionally for ESP8266, for getting MQTTS:*
68
68
69
-
ESP8266 can use MQTT as default. If you want to use MQTTS, you need to do below steps.
69
+
ESP8266 uses MQTT as default. If you want to use MQTTS, you need to do below steps.
70
70
71
71
Install [**ESP8266 updater**](https://github.com/esp8266/arduino-esp8266fs-plugin) plugin for Arduino IDE.
Copy file name to clipboardExpand all lines: src/LiveObjects.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@
19
19
#if defined ARDUINO_SAMD_MKRGSM1400 || defined ARDUINO_SAMD_MKRNB1500
20
20
#defineCellular
21
21
#include"LiveObjectsCellular.h"
22
-
#elif defined ARDUINO_SAMD_MKRWIFI1010 || defined ARDUINO_SAMD_NANO_33_IOT || defined ARDUINO_SAMD_MKRVIDOR4000 || defined ARDUINO_SAMD_MKR1000 || ADAFRUIT_FEATHER_M0
22
+
#elif defined ARDUINO_SAMD_MKRWIFI1010 || defined ARDUINO_SAMD_NANO_33_IOT || defined ARDUINO_SAMD_MKRVIDOR4000 || defined ARDUINO_SAMD_MKR1000 || defined ADAFRUIT_FEATHER_M0
0 commit comments