Example Code for Unihiker M10-SIOTV2 Online Data Transmission
Last revision 2026/01/12
The article provides a comprehensive guide for setting up Unihiker M10 with SIOTV2 service for online data transmission, detailing hardware and software preparation, wiring, sample code, and troubleshooting steps to ensure successful data handling and network connection.
Wiring Diagram

Other Preparation Work
- Use the Unihiker M10 to run the Siot v2 service.
- The Lark Weather Station and Unihiker M10 must be connected to the same network, or connect the Lark Weather Station to the M10’s wifi hotspot.
- Connect the Unihiker M10 to your computer using a Type-C cable.
- Power on the Unihiker, then open a browser and enter
10.1.2.3to access the webpage. - In the "Network Settings" section, connect the M10 to WiFi and record the IP address displayed (e.g.,
192.168.123.1). - Enable the SIOT service in the “Application Switch”, and then “Open Page”.
SIOTV2 Server Configuration
- Click New Topic, enter the topic name,The topic name refers to the following settings:
Speed
Dir
Temp
Humi
Pressure
Battery
Voltage
Lat
Lon
AltGNSS

Lark Weather Station Pro Config
- 1.Connect the Lark Weather Station Pro to your computer and open the "DTU_config.txt" file in the pop-up USB drive.
(Note: When connecting the Lark Pro to a computer for configuration or data export, ensure that the power at the bottom of the expansion module is turned off. Otherwise, configuration failures or data loss may occur.) - 2.Replace the original content in the "DTU_config.txt" file entirely with the following content:
#=====================
DTU_Switch:on
Method:wifi
#=====================
WiFi_SSID:your_wifi_ssid_or_M10_wifi_hotspot_ssid
WiFi_PASSWORD:your_wifi_passwprd_or_M10_wifi_hotspot_passwprd
#----------------
Lora_DEUI:
Lora_EUI:
Lora_KEY:
#=====================================
Server:siotv2
Server_IP:IP_address_eg_192.168.9.187
Iot_ID:siot
Iot_PWD:dfrobot
Save:1
Topic_Speed:siot/Speed
Topic_Dir:siot/Dir
Topic_Temp:siot/Temp
Topic_Humi:siot/Humi
Topic_Pressure:siot/Pressure
Topic_Battery:siot/Battery
Topic_Voltage:siot/Voltage
Topic_Lat:siot/Lat
Topic_Lon:siot/Lon
Topic_AltGNSS:siot/AltGNSS
Deployment and Use
-
Disconnect the Lark Weather Station Pro from the computer and turn on the power switch at the bottom of the station.
Pay attention to the status of the indicator light. When the purple light starts blinking according to the sampling frequency, it indicates a successful network connection (default: every 30 seconds):
- Yellow light stays on briefly and then turns off: System initialization
- Green light flashes: Data is being stored in the CSV file
- Purple light flashes: Data is being reported
- Yellow light stays on for 3 seconds: Wi-Fi connection failed within 30 seconds. If this occurs during the first boot, Wi-Fi will be abandoned, and the device will begin normal offline operation.
- Yellow light flashes for 10 seconds: MQTT connection failed within 60 seconds. If this occurs during the first boot, MQTT will be abandoned, and the device will begin normal offline operation.
You can view the corresponding topic data in the SIOTV2 web backend.

Was this article helpful?
