× This is the optional category header for the Suggestion Box.

Add TCP *Relay node* (esp8266 only needed)

9 years 2 months ago - 9 years 2 months ago #590 by VasilijHCN
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.

Please Log in or Create an account to join the conversation.

9 years 2 months ago #596 by lewys.martin
very possible, i dream that some day there will be an arduino compatible firmware for ESP8266 so this would be so easy! hahaa,

but you may be able to get it working!

Please Log in or Create an account to join the conversation.

9 years 2 months ago - 9 years 2 months ago #602 by EasyIoT

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.
The following user(s) said Thank You: VasilijHCN

Please Log in or Create an account to join the conversation.

9 years 2 months ago - 9 years 2 months ago #604 by VasilijHCN
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. B)

Please Log in or Create an account to join the conversation.

9 years 2 months ago #605 by EasyIoT

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. B)


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.

Please Log in or Create an account to join the conversation.

9 years 2 months ago #606 by VasilijHCN
Yes, U are right. This will be great, to control simple relay without arduino.

Please Log in or Create an account to join the conversation.

Time to create page: 0.312 seconds

Forum latest

  • No posts to display.