Material preparation
LinkNode D1 x 1
Arduino IDE
Step
-
Login linksprite.io ,and record the “Device ID” and “API key”
-
Register www.linksprite.io and Login this account
-
My Profile -> API key
-
My device->Create DIY Device
Enter Device Name,Device Type , Group Name , the device number is 00, device name and device grouping can be any.
Note: Device Type must be selected 00(Custom device type) .
Now you can see “test” in My Devices, Click “test” and record the Device ID.
-
Download and run the code
-
Download the source files
1 git clone GitHub - delongqilinksprite/LinkSpriteIO: This is demo about how to use LinkNode D1 and LinkNode R4 connect to linksprite.io
2. Put the code in the following directory(examples under Arduino installation directory )
- Open the Arduino IDE, File -> Example -> LinkSpriteIO-> LinkSpriteIO.ino
- Modify the “deviceID” and “apikey” with your own
-
Configure LinkNode D1 Engineering Environment
-
compile and run the code
Results
Open the serial port and www.linksprite.io to observe phenomena.
serial port
Here we can see communication of LinkNode D1 and linksprite.io.
Note:
The first use of LinkNode D1 need to connect the WiFi, the specific operation, please refer to the linksprite wiki Tutorial 4 .