Skip to content

Commit 6669167

Browse files
committed
Arduino MKR1000 SSL with SSL connection now supported.
Updated License.
1 parent 1c83590 commit 6669167

23 files changed

+86
-27
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Please, refer to the following page for a full documentation of the Arduino Clie
2525

2626
The class is licensed under the [MIT License](http://opensource.org/licenses/MIT):
2727

28-
Copyright © 2015 [THINGER LTD](http://thinger.io)
28+
Copyright © 2016 [THINK BIG LABS SL](http://thinger.io)
2929

3030
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
3131

examples/ArduinoMKR1000/ArduinoMKR1000.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include <WiFi101.h>
2-
#include <ThingerWifi.h>
2+
#include <ThingerWifi101.h>
33

44
#define USERNAME "your_user_name"
55
#define DEVICE_ID "your_device_id"
@@ -9,7 +9,7 @@
99
#define SSID_PASSWORD "your_wifi_ssid_password"
1010
#define LED_PIN 6
1111

12-
ThingerWifi thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
12+
ThingerWifi101 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
1313

1414
void setup() {
1515
// configure wifi network

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name=thinger.io
2-
version=2.4.0
2+
version=2.4.1
33
author=Alvaro Luis Bustamante <[email protected]>
44
maintainer=Thinger.io <[email protected]>
5-
sentence=Arduino library for the thinger.io IoT platform.
5+
sentence=Arduino library for the Thinger.io Internet of Things Platform.
66
paragraph=Thinger.io is an open source platform for the Internet of Things. It will allow connecting your things or devices for remote sensing and actuating. Working with several devices like ESP8266, Arduino Ethernet, Arduino Wifi, Arduino MKR1000, Arduino Yun, Adafruit CC3000, Texas Instruments CC3200, ENC28J60, LinkIt ONE.
77
category=Communication
88
url=https://github.com/thinger-io/Arduino-Library

src/ThingerCC3000.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016 THINGER LTD
3+
// Copyright (c) 2016 THINK BIG LABS SL
44
// Author: [email protected] (Alvaro Luis Bustamante)
55
//
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/ThingerClient.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016 THINGER LTD
3+
// Copyright (c) 2016 THINK BIG LABS SL
44
// Author: [email protected] (Alvaro Luis Bustamante)
55
//
66
// Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -34,6 +34,7 @@ memory_allocator& protoson::pool = alloc;
3434

3535
#define THINGER_SERVER "iot.thinger.io"
3636
#define THINGER_PORT 25200
37+
#define THINGER_SSL_PORT 25202
3738
#define RECONNECTION_TIMEOUT 5000 // milliseconds
3839

3940
#ifdef _DEBUG_
@@ -127,6 +128,10 @@ class ThingerClient : public thinger::thinger {
127128
return true;
128129
}
129130

131+
virtual bool connect_socket(){
132+
return client_.connect(THINGER_SERVER, THINGER_PORT);
133+
}
134+
130135
enum THINGER_STATE{
131136
NETWORK_CONNECTING,
132137
NETWORK_CONNECTED,
@@ -216,7 +221,7 @@ class ThingerClient : public thinger::thinger {
216221
bool connected = false;
217222
client_.stop(); // cleanup previous socket
218223
thinger_state_listener(SOCKET_CONNECTING);
219-
if (client_.connect(THINGER_SERVER, THINGER_PORT)) {
224+
if (connect_socket()) {
220225
thinger_state_listener(SOCKET_CONNECTED);
221226
thinger_state_listener(THINGER_AUTHENTICATING);
222227
connected = thinger::thinger::connect(username_, device_id_, device_password_);

src/ThingerENC28J60.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016 THINGER LTD
3+
// Copyright (c) 2016 THINK BIG LABS SL
44
// Author: [email protected] (Alvaro Luis Bustamante)
55
//
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/ThingerEthernet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016 THINGER LTD
3+
// Copyright (c) 2016 THINK BIG LABS SL
44
// Author: [email protected] (Alvaro Luis Bustamante)
55
//
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/ThingerGSM.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016 THINGER LTD
3+
// Copyright (c) 2016 THINK BIG LABS SL
44
// Author: [email protected] (Alvaro Luis Bustamante)
55
//
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/ThingerLinkItOneGPRS.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016 THINGER LTD
3+
// Copyright (c) 2016 THINK BIG LABS SL
44
// Author: [email protected] (Alvaro Luis Bustamante)
55
//
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

src/ThingerLinkItOneWifi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// The MIT License (MIT)
22
//
3-
// Copyright (c) 2016 THINGER LTD
3+
// Copyright (c) 2016 THINK BIG LABS SL
44
// Author: [email protected] (Alvaro Luis Bustamante)
55
//
66
// Permission is hereby granted, free of charge, to any person obtaining a copy

0 commit comments

Comments
 (0)