UserID: 

 Last logged in: 


สำหรับภาษาไทย 

IoTtweet.com API

How to use api.iottweet.com

   The IoTtweet.com API allows you to
(1) Send data from your IoT device to the dashboard.
(2) Control and read data from your IoT device using the dashboard.


Cennect to WiFi

WiFi connection

Connecting IoT device to WiFi router

.begin(ssid,password);


Argument Data type Meaning
SSID const char WiFi network name
Password const char WiFi network password

Result Data type Data return
WiFi connected bool true
WiFi disconnected bool false


Write IoT data to your dashboard

Write data to the dashboard with just one line

   WriteDashboard will record your data on the server and display it on your dashboard.


.WriteDashboard(userid,key,data0,data1,data2,data3,private_tweet,public_tweet);


Argument Data type Meaning
userid const char 6 digit IoTtweet account user ID. Located on the website page when you are logged in.
key const char key code of your registered device in "Dashboard" > "My IoT garage".
data0-data3 float 4 fields of data to send to the dashboard.
private_tweet const char Message to display privately on the dashboard.
public_tweet const char Message to display publicly on the dashboard.

Result Data type Data return
Database created on server JSON {"iottweet":[{"create":"success"}]}
Data recorded JSON {"iottweet":[{"record":"success"}]}

[Hints]
  - To send data to api.iottweet.com in real-time, we recommend calling WriteDashboard every 15 seconds or less.



Read and control IoT devices from your dashboard/h2>

Read data and control your IoT device

   You can control the output of your IoT device registered in your account from your dashboard.

.ReadControlPanel(userid,key);


Argument Data type Meaning
userid const char 6 digit IoTtweet account user ID. Located on the website page when you are logged in.
key const char key code of your registered device in "Dashboard" > "My IoT garage".

Result Data type Data return
IoTtweet server returns the status of the digital switches and values of the analog sliders on your dashboard JSON {"sw1":"status","sw2":"status",...,"slider3":"value"}

The switch return status is "ON" or "OFF". The slider return value is a 2 digit float.
Use "ArduinoJson.h" to parse the JSON data.


.ReadDigitalSwitch(userid,key,switch_number);


Argument Data type Meaning
userid const char 6 digit IoTtweet account user ID. Located on the website page when you are logged in.
key const char key code of your registered device in "Dashboard" > "My IoT garage".
switch_number Integer Number of switch on dashboard (Normally are no.1-5).

Result Data type Data return
Switch status String "ON" or "OFF"


.ReadAnalogSlider(userid,key,slider_number);


Argument Data type Meaning
userid const char 6 digit IoTtweet account user ID. Located on the website page when you are logged in.
key const char key code of your registered device in "Dashboard" > "My IoT garage".
slider_number Integer Number of slider on dashboard (Normally are no.1-3).

Result Data type Data return
Slider value float xx.xx


Other use


.getVersion();


Argument Data type Meaning
- - Get the version number of the current IoTtweet librar

Result Data type Data return
Current IoTtweet library version const char Example : "v0.2.0"

You can get the latest version on github:IoTtweet.




Have fun with IoT tweet !!
- Support team / IoTtweet.com -