Releases: allthingstalk/arduino-wifi-sdk
Releases · allthingstalk/arduino-wifi-sdk
AllThingsTalk Arduino WiFi SDK v2.1.2
AllThingsTalk Arduino WiFi SDK v2.1.1
- Fixed issue with ControlLedBuilIn example where the asset being created was a sensor asset instead of an actuator.
AllThingsTalk Arduino WiFi SDK v2.1
What's new?
- Create assets on AllThingsTalk Maker right from your device!
- Simply adding
createAsset("temp", "Home Temperature", "sensor", "number")
in yoursetup()
function will create a new Sensor asset 'temp' with data type 'number' on your AllThingsTalk when the device boots. - When debug is enabled, you'll be able to see live results of new asset creation.
- Almost all examples have been updated to utilize this new feature.
- Simply adding
- Added new methods for checking if SDK features are enabled or disabled:
wifiSignalReporting()
returnstrue
orfalse
connectionLed()
returnstrue
orfalse
- Added boolean returns to functions (that were previously void) to enable user to check if actions were performed successfully:
wifiSignalReporting
connectionLed
setHostname
device.send
(JSON, CBOR and Binary Payload)
AllThingsTalk Arduino WiFi SDK v2.0
The new AllThingsTalk SDK for WiFi-based devices is here!
This is the successor to AllThingsTalk Arduino SDK, which is now deprecated. Consider upgrading to this one!
This SDK is officially available in Arduino Library Manager!
What's new?
A lot of things. If you're coming from the old SDK, make sure to check the README file because absolutely everything is covered there.
In a nutshell, here's what the new SDK does:
- Significantly simplified API
- With 6 lines of code in total, it connects to WiFi, connects to AllThingsTalk, shows connection status via onboard LED, sends a JSON message to your AllThingsTalk maker and maintains connection to both WiFi and ATT
- Tons of examples with comments on almost every line
- Automatically recognizes the board you're uploading it to and uses an adequate version of itself tailored for that board
- ESP8266-based devices and Arduino MKR1010 are currently supported, with more coming in the future
- Handles and maintains Wi-Fi Connection
- Handles and maintains connection to AllThingsTalk
- Enables you to add actuations (receive data) with two lines of code
- You can add up to 32 actuations
- Automatically recognizes the data type you're trying to receive from AllThingsTalk so you don't have to convert anything
- Reports WiFi Signal Strength to your AllThingsTalk Maker
- You can define a custom reporting interval
- Also useful for knowing if your device is really offline or if there's no new data to send
- Utilizes onboard LED of your device to show connection status (both WiFi and AllThingsTalk) with ability to define your own LED pin or completely disable the feature altogether
- Sends data in JSON, CBOR or Binary Payload
- Enables you to change SDK options on-the-fly without restarting the device
- Enables you to use a different AllThingsTalk Space, but defaults to Maker
- Provides functions to connect and disconnect from either WiFi, AllThingsTalk or both (useful for deepsleep)
- Has two levels of debug output via serial interface. If you choose verbose, be prepared to see everything that's happening behind the scenes!
Upgrading from 1.x.x
This is a major update with a lot of simplifications so you'll have a lot less code in your sketch once you upgrade!
A lot of examples are now present with comments on almost every line to help you understand everything.
- Make sure to delete the old Arduino SDK from your Arduino Libraries folder (most likely located in Documents > Arduino > libraries)
- In your Arduino IDE, go to Tools > Manage Libraries and search for "AllThingsTalk WiFi SDK" by AllThingsTalk.
- Install it!
If you encounter any issues, check the Troubleshooting part of the README file, and if that doesn't help, we encourage you to open up a new issue!