Home > Telethings > telethings teleRelays-2L Device Thermostat User Manual

telethings teleRelays-2L Device Thermostat User Manual

Telethings  
5. DATA PROTOCOL  
If you are using your own server, you need to know data protocol, i.e. data packages and  
communication flow. First of all, it is necessary to create an application on the server and  
add the device using the appropriate keys. If the server application is created and the device  
is added to it, then the device can be turned on and the JOIN procedure can be started. Once  
the device is successfully JOINED to the server, it can start sending and receiving messages  
to/from the server.  
5.1. teleRelays-2L Data Packages  
The data package that teleRelays-2L sends to the server has the following format:  
<relay_states>  
relay_states is 1 byte data and represents the current state of all relays on the device.  
PACKAGE  
OFFSET  
0
DATA  
PORT NUMBER  
100  
DATA SIZE IN BYTES  
1
relay_states  
Table 1. Reference for creating a relay state data formatters  
Each bit in the relay_states data represents the state of an individual relay, as shown in  
Table 2. If the relay is active, its state is marked with 1. Otherwise, the state of the relay  
is 0.  
BIT NUMBER  
VALUE  
1
2
3
4
5
6
7
8
first  
relay  
state  
second  
relay  
state  
third  
relay  
state  
fourth  
relay  
state  
fifth  
relay  
state  
sixth seventh eighth  
relay  
state  
relay  
state  
relay  
state  
Table 2. Bit values in relays_states data  
The data package that the server sends to the teleRelays-2L device can have one of the  
following formats depending on the selected mode:  
1. If ON, OFF or TOGGLE mode is selected, the data packet has the following format:  
<command >< relay_number><timer_value>  
2. If DELAY ON or DELAY OFF mode is selected, the data packet has the following  
format:  
<command ><separator>< relay_number>  
10  
   
GeneralDetails
Nametelethings teleRelays-2L Device Thermostat User Manual
MakeTelethings
LanguageEnglish
FiletypePDF (Download)
File size0.31 MB
Download PDF
1 Star2 Stars3 Stars4 Stars5 Stars (1 votes, average: 5.00 out of 5)
Loading...
telethings teleRelays-2D Tele Thermostat User Manual
telethings teleRelays-2D Tele Thermostat User Manual
telethings 2D Smart LoRaWAN Thermostat User Manual
telethings 2D Smart LoRaWAN Thermostat User Manual
telethings TELESWITCH – 2L Smart LoRaWAN Thermostat User Manual
telethings TELESWITCH – 2L Smart LoRaWAN Thermostat User Manual

telethings teleRelays-2L Device Thermostat User Manual