0.8.0
BREAKING CHANGES:
The code which handles WiFi and GSM connections as well as the code which handles the debug and status messages have until now been a part of the ArduinoIoTCloud
library. This is no longer the case. In order to simplify ArduinoIoTCloud
and allow the easy addition of new connection types the code responsible for connection handling has been put into a separate Arduino library Arduino_ConnectionHandler. Similiarly the code responsible for debug and status messages has been put into a separate Arduino library Arduino_DebugUtils.
Unfortunately those changes break compatibility with already existing sketches which is why you need to make the following adjustments to get your code to compile again:
- Modify
thingProperties.h
MKR1000/MKR WiFi 1010
-#include <GSMConnectionManager.h>
+#include <Arduino_ConnectionHandler.h>
...
-ConnectionManager * ArduinoIoTPreferredConnection = new WiFiConnectionManager(SSID, PASSWORD);
+WiFiConnectionHandler ArduinoIoTPreferredConnection(SSID, PASSWORD);
MKR GSM 1400
-#include <WiFiConnectionManager.h>
+#include <Arduino_ConnectionHandler.h>
...
-ConnectionManager * ArduinoIoTPreferredConnection = new GSMConnectionManager(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
+GSMConnectionHandler ArduinoIoTPreferredConnection(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
Also there is no longer a need for the cloud specific Arduino library ArduinoIoTCloudBearSSL. It is replaced with the general purpose Arduino port of BearSSL ArduinoBearSSL.
If you are compiling your sketches on the Arduino Create platform the new libraries Arduino_ConnectionHandler, Arduino_DebugUtils and ArduinoBearSSL have already been installed for you. If you are working on your PC those libraries need to be installed, e.g. via the library manager.