Skip to content

Commit

Permalink
Release 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacp3r3 committed Nov 25, 2020
1 parent 0cee386 commit f33a1ab
Show file tree
Hide file tree
Showing 24 changed files with 136 additions and 172 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/compile-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ jobs:
"arduino:samd:mkrwifi1010",
"arduino:samd:nano_33_iot",
"arduino:samd:mkrvidor4000",
'"esp8266:esp8266:huzzah" "http://arduino.esp8266.com/stable/package_esp8266com_index.json"'
'"esp8266:esp8266:huzzah" "http://arduino.esp8266.com/stable/package_esp8266com_index.json"',
'"adafruit:samd:adafruit_feather_m0:usbstack=arduino,debug=off" "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json"'
#'"adafruit:avr:feather32u4" "https://adafruit.github.io/arduino-board-index/package_adafruit_index.json" ',
#'"esp32:esp32:esp32doit-devkit-v1:FlashFreq=80,UploadSpeed=921600,DebugLevel=none" "https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json"'
]

steps:
#- run: pip install pyserial
#- run: pip3 install pyserial
- uses: actions/checkout@v1
with:
fetch-depth: 1
Expand Down
13 changes: 13 additions & 0 deletions THIRD_PARTY.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
COMPONENT | VERSION | LICENCE | URL
-------------------------------------------------------------------------------------------------------------------------------------------------
MKRNB | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/MKRNB
MKRGSM | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/MKRGSM
WiFiNINA | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/WiFiNINA
WiFi101 | Latest | GNU LGPL 2.1 | https://github.com/arduino-libraries/WiFi101
ArduinoMQTTClient | 0.1.5 moddified | GNU LGPL 2.1 | https://github.com/arduino-libraries/ArduinoMqttClient
PubSubClient | Latest | MIT License | https://github.com/knolleary/pubsubclient/blob/master/LICENSE.txt
ArduinoJSON | Latest | MIT License | https://github.com/bblanchon/ArduinoJson/blob/6.x/LICENSE.md
Adafruit FONA | Latest | BSD License | https://github.com/adafruit/Adafruit_FONA
Adafruit MQTT | 2.0.0 modiffied | MIT License | https://github.com/adafruit/Adafruit_MQTT_Library/blob/master/LICENSE
ESP8266 boards components | Latest | GNU LGPL 2.1 | https://github.com/esp8266/Arduino/blob/master/LICENSE
ESP32 boards components | Latest | GNU LGPL 2.1 | https://github.com/espressif/arduino-esp32/blob/master/LICENSE.md
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=LiveObjectsSDK
version=1.0.0
version=2.0.0
author=Orange
maintainer=Marc Delain <marc.delain@orange.com>, Krzysztof Krzeslak <krzysztof.krzeslak@orange.com>
sentence=A library that makes connection with Orange LiveObjects platform a breeze.
Expand Down
4 changes: 4 additions & 0 deletions src/Adafruit_MQTT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
// Modiffications:
// setClientID()
//
#include "Adafruit_MQTT.h"

#if defined(ARDUINO_SAMD_ZERO) || defined(ARDUINO_SAMD_MKR1000) || \
Expand Down
109 changes: 0 additions & 109 deletions src/Adafruit_MQTT_Client.cpp

This file was deleted.

57 changes: 0 additions & 57 deletions src/Adafruit_MQTT_Client.h

This file was deleted.

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

Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjects.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#pragma once

/******************************************************************************
Expand Down
11 changes: 11 additions & 0 deletions src/LiveObjectsBase.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@

/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#include "LiveObjectsBase.h"
LiveObjectsBase::LiveObjectsBase()
:
Expand Down Expand Up @@ -341,6 +347,11 @@ void LiveObjectsBase::publishMessage(const String& topic, String& payload) {
******************************************************************************/
void LiveObjectsBase::begin(Protocol p, Encoding e, bool d)
{
if(e != TEXT && e != BINARY)
{
outputDebug(ERR,"Wrong encoding type! Check your code. begin(MQTT/SMS , TEXT/BINARY, false/true)");
while(true);
}
m_Protocol = p;
m_Encoding = e;
m_bDebug = d;
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsBase.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#pragma once


Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsCellular.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#include "LiveObjectsCellular.h"

#if defined NBD || defined GSMD
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsCellular.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#include "LiveObjectsMKR.h"
#if defined ARDUINO_SAMD_MKRNB1500
#define NBD
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsCert.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#ifndef _LIVEOBJECTS_CERT_H_INCLUDED
#define _LIVEOBJECTS_CERT_H_INCLUDED

Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsESP.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#include "LiveObjectsESP.h"

#if defined ESP8266D || defined ESP32D
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsESP.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#pragma once
#if defined ESP8266 || defined ESP32
#include "LiveObjectsBase.h"
Expand Down
12 changes: 10 additions & 2 deletions src/LiveObjectsFona.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#include "LiveObjectsFona.h"
#ifdef FONAD
LiveObjectsFona::LiveObjectsFona()
Expand All @@ -6,6 +12,7 @@ LiveObjectsFona::LiveObjectsFona()
,m_FonaSerial(FONA_TX,FONA_RX)
,m_FonaMQTT(&m_Fona,MQTT_BROKER, 1883,"Fona", MQTT_USER, SECRET_LIVEOBJECTS_API_KEY)
,m_sClientID()
,m_sModel("Orange")
,m_nPort(1883)
,m_Security(NONE)
{
Expand All @@ -14,9 +21,10 @@ LiveObjectsFona::LiveObjectsFona()

void LiveObjectsFona::begin(Protocol p, Encoding e, bool d)
{
if(m_Encoding == BINARY)
if(m_Encoding != TEXT)
{
//Serial.println("[ERROR] This board support only Text mode");
Serial.println("[ERROR] This board support only Text mode");
while(true);
}
m_Protocol=p;
m_Encoding=e;
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsFona.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#pragma once

#ifdef ARDUINO_ARCH_AVR
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsMKR.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#include "LiveObjectsMKR.h"
LiveObjectsMKR::LiveObjectsMKR()
:
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsMKR.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#pragma once
/******************************************************************************
MKR BOARDS BASE CLASS
Expand Down
6 changes: 6 additions & 0 deletions src/LiveObjectsWiFi.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
* Copyright (C) Orange
*
* This software is distributed under the terms and conditions of the 'MIT'
* license which can be found in the file 'LICENSE.md' in this package distribution
*/
#include "LiveObjectsWiFi.h"
#ifdef WIFID
LiveObjectsWiFi::LiveObjectsWiFi()
Expand Down
Loading

0 comments on commit f33a1ab

Please sign in to comment.