Hi its possible to add a virtual switch, that send tcp command, then we can control relay with only esp module (no arduino needed). ?
We send command GPIO,00,1 on *esp relay node ip* port 9999.
Modified esp8266 firmware is freely available.
VasilijHCN wrote: Hi its possible to add a virtual switch, that send tcp command, then we can control relay with only esp module (no arduino needed). ?
We send command GPIO,00,1 on *esp relay node ip* port 9999.
Modified esp8266 firmware is freely available.
Can you send some link to relay project example? Or this is just idea?
On the other side it's very simple to create sensor nodes with virtual sensor on EasyIoT side and ESP8266 (without Arduino) on other side. There is ESP8266 lua example to send temperature to server on internet, but it's very easy to change code to send meassurments to EasyIoT server virtual node. You need only DS18B20 and ESP8266 to send temperature to EasyIoT server.
Just call in ESP8266 lua:
http://[IP address]Api/EasyIoT/Control/Module/Virtual/[address]ControlLevel/[value]
IP adress - EasyIoT server address
address - virtual module address
value - temperature value
and value will be recorded to EasyIoT server. This is suitable for simple sensor nodes.
www.esp8266.com/viewtopic.php?f=5&t=8&p=...=GPIO%2C00%2C1#p6759
Relay module based on this firmware work in my home 3 months without any bugs.
I control this over android phone by wifi tcp app.
First we need flash esp8266 with official 0.9.2.2 firmware, then with modified. Thank U for Lua example.
VasilijHCN wrote:
www.esp8266.com/viewtopic.php?f=5&t=8&p=...=GPIO%2C00%2C1#p6759
Relay module based on this firmware work in my home 3 months without any bugs.
I control this over android phone by wifi tcp app.
First we need flash esp8266 with official 0.9.2.2 firmware, then with modified. Thank U for Lua example.
If I understand, ESP8266 works as TCP server and then you send simple commands with TCP client. It can be done in automation with tcp client and virtual module. Or maybe new ESP8266 driver with just simple DI/DO.