Skip to content

Commit 063cf98

Browse files
committed
SNI_changes
1 parent f030a34 commit 063cf98

File tree

5 files changed

+17
-22
lines changed

5 files changed

+17
-22
lines changed

README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,30 @@ The code will manage the LTE-M, GSM and WiFi connection (depending on currently
1515
| Arduino MKR 1010 WiFi | OK | OK | - |
1616
| Arduino MKR 1400 GSM | OK | OK | OK |
1717
| Arduino MKR 1500 NB | OK | OK | OK |
18-
| Arduino MKR VIDOR 4000 | OK | OK* | - |
18+
| Arduino MKR VIDOR 4000 | OK | OK | - |
1919
| Arduino Nano 33 IoT | OK | OK | - |
20-
| ESP8266 Boards | OK | OK** | - |
20+
| ESP8266 Boards | OK | OPT<sup>1)</sup> | - |
2121
| ESP32 Boards | OK | OK | - |
22-
| Adafruit Feather M0 WiFi| OK | OK | - |
22+
| Adafruit Feather M0 WiFi| OK | - | - |
2323
| Adafruit Feather 32u4 | OK | - | OK |
2424

2525
## 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.
2727

2828
#### Libraries provided by Arduino
2929
- [MKRNB](https://www.arduino.cc/en/Reference/MKRNB) in order to handle the LTE-M module on **Arduino MKR NB 1500**
3030
- [MKRGSM](https://www.arduino.cc/en/Reference/MKRGSM) in order to handle the GSM module on **Arduino MKR GSM 1400**
3131
- [WiFiNINA](https://www.arduino.cc/en/Reference/WiFiNINA) in order to handle WiFi module on **Arduino MKRWIFI 1010** and **Arduino Nano 33 IoT**
3232
- [WiFi101](https://www.arduino.cc/en/Reference/WiFi101) in order to handle WiFi module on **Arduino MKR 1000**
3333

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>
3535

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
3737

3838
#### Library for ESP8266 and ESP32 boards
3939
- [PubSubClient](https://pubsubclient.knolleary.net/) library provides a client for doing simple publish/subscribe messaging with a server that supports MQTT
4040

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)
4342
- [ArduinoJson](https://arduinojson.org/), a powerful library used to parse, store and handle JSON easily
4443

4544
#### SAMD21 Arduino core
@@ -53,20 +52,21 @@ This code needs 2 ~~3~~ external libraries to run, that you can install using th
5352
4. In the **'src/arduino_secrets.h'** file :
5453
- Paste it as initialization value for the `SECRET_LIVEOBJECTS_API_KEY` variable in the 'arduino_secrets.h' file -keep the double quotes!
5554

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*.
5756
- 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.
5857

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
6059

61-
Line ~165 - m_Fona.setGPRSNetworkSettings(F("APN"), F(""), F(""));
60+
- Line ~179 - m_Fona.setGPRSNetworkSettings(F("APN"), F(""), F(""));
6261
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*
6362

6463
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.**
6666

67-
**Optionally for ESP8266 for getting MQTTS:
67+
<sup>1)</sup> *Optionally for ESP8266, for getting MQTTS:*
6868

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

7171
Install [**ESP8266 updater**](https://github.com/esp8266/arduino-esp8266fs-plugin) plugin for Arduino IDE.
7272

src/Adafruit_MQTT.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ Adafruit_MQTT::Adafruit_MQTT(const char *server, uint16_t port,
127127
const char *user, const char *pass) {
128128
servername = server;
129129
portnum = port;
130-
clientid = "";
131130
username = user;
132131
password = pass;
133132

src/LiveObjects.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#if defined ARDUINO_SAMD_MKRGSM1400 || defined ARDUINO_SAMD_MKRNB1500
2020
#define Cellular
2121
#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
2323
#define WIFI_
2424
#include "LiveObjectsWiFi.h"
2525
#endif

src/LiveObjectsBase.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
******************************************************************************/
1313
#define PAYLOAD_DATA_SIZE 1024
1414
#define KEEP_ALIVE_NETWORK 1000
15-
#define SW_REVISION "2.0.1"
15+
#define SW_REVISION "2.0.2"
1616

1717

1818
/******************************************************************************
1919
LiveObjects MQTT constants
2020
******************************************************************************/
2121
#if defined ARDUINO_SAMD_MKRWIFI1010 || defined ESP8266 || defined ESP32\
22-
|| defined ARDUINO_SAMD_MKRVIDOR4000|| defined ARDUINO_SAMD_NANO_33_IOT
22+
|| defined ARDUINO_SAMD_NANO_33_IOT || defined ADAFRUIT_FEATHER_M0 || defined ARDUINO_SAMD_MKR1000
2323
#define MQTT_BROKER "mqtt.liveobjects.orange-business.com"
2424
#else
2525
#define MQTT_BROKER "liveobjects.orange-business.com"

src/LiveObjectsWiFi.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
* license which can be found in the file 'LICENSE.md' in this package distribution
66
*/
77
#if defined ARDUINO_SAMD_MKRWIFI1010 || defined ARDUINO_SAMD_NANO_33_IOT || defined ARDUINO_SAMD_MKRVIDOR4000
8-
#ifdef ARDUINO_SAMD_MKRVIDOR4000
9-
#include <api/RingBuffer.h>
10-
#include <VidorPeripherals.h>
11-
#endif
128
#include "LiveObjectsMKR.h"
139
#define WIFID
1410
#include <WiFiNINA.h>

0 commit comments

Comments
 (0)