Skip to content

Commit f33a1ab

Browse files
committed
Release 2.0.0
1 parent 0cee386 commit f33a1ab

24 files changed

+136
-172
lines changed

.github/workflows/compile-examples.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
"arduino:samd:mkrwifi1010",
1616
"arduino:samd:nano_33_iot",
1717
"arduino:samd:mkrvidor4000",
18-
'"esp8266:esp8266:huzzah" "http://arduino.esp8266.com/stable/package_esp8266com_index.json"'
18+
'"esp8266:esp8266:huzzah" "http://arduino.esp8266.com/stable/package_esp8266com_index.json"',
19+
'"adafruit:samd:adafruit_feather_m0:usbstack=arduino,debug=off" "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"'
20+
#'"adafruit:avr:feather32u4" "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" ',
1921
#'"esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none" "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"'
2022
]
2123

2224
steps:
23-
#- run: pip install pyserial
24-
#- run: pip3 install pyserial
2525
- uses: actions/checkout@v1
2626
with:
2727
fetch-depth: 1

THIRD_PARTY.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
COMPONENT | VERSION | LICENCE | URL
2+
-------------------------------------------------------------------------------------------------------------------------------------------------
3+
MKRNB | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/MKRNB
4+
MKRGSM | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/MKRGSM
5+
WiFiNINA | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/WiFiNINA
6+
WiFi101 | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/WiFi101
7+
ArduinoMQTTClient | 0.1.5 moddified | GNU LGPL 2.1 | https://github.com/arduino-libraries/ArduinoMqttClient
8+
PubSubClient | Latest | MIT License | https://github.com/knolleary/pubsubclient/blob/master/LICENSE.txt
9+
ArduinoJSON | Latest | MIT License | https://github.com/bblanchon/ArduinoJson/blob/6.x/LICENSE.md
10+
Adafruit FONA | Latest | BSD License | https://github.com/adafruit/Adafruit_FONA
11+
Adafruit MQTT | 2.0.0 modiffied | MIT License | https://github.com/adafruit/Adafruit_MQTT_Library/blob/master/LICENSE
12+
ESP8266 boards components | Latest | GNU LGPL 2.1 | https://github.com/esp8266/Arduino/blob/master/LICENSE
13+
ESP32 boards components | Latest | GNU LGPL 2.1 | https://github.com/espressif/arduino-esp32/blob/master/LICENSE.md

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=LiveObjectsSDK
2-
version=1.0.0
2+
version=2.0.0
33
author=Orange
44
maintainer=Marc Delain <[email protected]>, Krzysztof Krzeslak <[email protected]>
55
sentence=A library that makes connection with Orange LiveObjects platform a breeze.

src/Adafruit_MQTT.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
22+
//
23+
// Modiffications:
24+
// setClientID()
25+
//
2226
#include "Adafruit_MQTT.h"
2327

2428
#if defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || \

src/Adafruit_MQTT_Client.cpp

Lines changed: 0 additions & 109 deletions
This file was deleted.

src/Adafruit_MQTT_Client.h

Lines changed: 0 additions & 57 deletions
This file was deleted.

src/LiveObjects.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (C) Orange
3+
*
4+
* This software is distributed under the terms and conditions of the 'MIT'
5+
* license which can be found in the file 'LICENSE.md' in this package distribution
6+
*/
17
#include "LiveObjects.h"
28
LiveObjects& lo = LiveObjects::get();
39

src/LiveObjects.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (C) Orange
3+
*
4+
* This software is distributed under the terms and conditions of the 'MIT'
5+
* license which can be found in the file 'LICENSE.md' in this package distribution
6+
*/
17
#pragma once
28

39
/******************************************************************************

src/LiveObjectsBase.cpp

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11

2+
/*
3+
* Copyright (C) Orange
4+
*
5+
* This software is distributed under the terms and conditions of the 'MIT'
6+
* license which can be found in the file 'LICENSE.md' in this package distribution
7+
*/
28
#include "LiveObjectsBase.h"
39
LiveObjectsBase::LiveObjectsBase()
410
:
@@ -341,6 +347,11 @@ void LiveObjectsBase::publishMessage(const String& topic, String& payload) {
341347
******************************************************************************/
342348
void LiveObjectsBase::begin(Protocol p, Encoding e, bool d)
343349
{
350+
if(e != TEXT && e != BINARY)
351+
{
352+
outputDebug(ERR,"Wrong encoding type! Check your code. begin(MQTT/SMS , TEXT/BINARY, false/true)");
353+
while(true);
354+
}
344355
m_Protocol = p;
345356
m_Encoding = e;
346357
m_bDebug = d;

src/LiveObjectsBase.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/*
2+
* Copyright (C) Orange
3+
*
4+
* This software is distributed under the terms and conditions of the 'MIT'
5+
* license which can be found in the file 'LICENSE.md' in this package distribution
6+
*/
17
#pragma once
28

39

0 commit comments

Comments
 (0)