ESP8266 WiFi gateway port for MySensors
-
@signal15 well there is a doc about OTA here. I discussed this topic with tekka, who is the author of the GatewayESP8266OTA example in the mysensors lib here.
It took me some time to get this working, but now I can upload new firmware to my ESP using wifi. Only drawback is that is seems to be not compatible with the mqtt version of the gateway. At least I was not able to get this working and stopped on that.
If you have further questions, don't hesitate to ask. -
I recently built a mysensors node with esp8266 where I needed many I/O pins which made me realize the possibility of using the pin RX (http://www.forward.com.au/pfod/ESP8266/GPIOpins/ESP8266_01_pin_magic.html).
Initializing the serial with:Serial.begin(MY_BAUD_RATE, SERIAL_8N1, SERIAL_TX_ONLY, 1);allows to use RX pin for I/O.
So I was wondering if it would be useful to add a way in which the serial port can be initialized:
#define MY_SERIAL_MODE SERIAL_TX_ONLY #define MY_SERIAL_MODE SERIAL_RX_ONLY #define MY_SERIAL_MODE SERIAL_FULL (default)github.com/marceloaqno/MySensors/commit/687fecc6b4abb782eae8e1abb3b07016bfeac291
Also, to use the esp8266 analog pin, I had to comment the line:
ADC_MODE(ADC_VCC);from MyHwESP8266.cpp.
Is there another way to use analog readings without messing the code?Excellent port by the way, I have been using here and it works great!!
-
Was the blocking code issue ever resolved @Yveaux ?
-
Was the blocking code issue ever resolved @Yveaux ?
-
-
I have an ESP using as a gateway and want to send some sensor information each 5 minutes to the controller.
Is it possible to use the wait command in the "loop"?
void loop() { wait(unsigned long ms); statusCounter += 1; send(msg.set(statusCounter)); } -
Hey
Im not really getting it is this a gateway for mysensors nodes or for mtqq Nodes with esp stuff? I dont really getting it. Do you need a esp8266 wifi gateway to get a wireless gateway for mysensors stuff or is like. Mysensors gateway ---> Esp8266 gateway --- Esp8266 node.
Sorry i dont really understand but im intressted in buying 8-10 sonoff for my window lamps, and i want them to work with domoticz :D
-
Hey
Im not really getting it is this a gateway for mysensors nodes or for mtqq Nodes with esp stuff? I dont really getting it. Do you need a esp8266 wifi gateway to get a wireless gateway for mysensors stuff or is like. Mysensors gateway ---> Esp8266 gateway --- Esp8266 node.
Sorry i dont really understand but im intressted in buying 8-10 sonoff for my window lamps, and i want them to work with domoticz :D
-
Yes, @alexsh1 is right. You would normally setup ESP nodes (like the sonoff) to act as a gateway, communicating directly with the controller themselves.
But if you're persistent (or have short wifi range), you can get two ESP nodes to communicate with each other using NRF24/RF69 like @mfalkvidd did recently.
-
Hi. I have loaded the Sonoff as an Ethernet gateway using the modified sketch in Vera and it recognizes it perfectly. The problem I have is that I dont know how to control the relay with the Vera now. Please help.
-
@Mark-Swift that issue apparently addressed an issue in the vs1053 library, which surfaced because the esp8266 doesn't support interrupts on spi transfers.
The issue was closed because the vs1053 library was modified to support esp8266, unfortunately not because esp interrupt support for spi was implemented... -
@Mark-Swift that issue apparently addressed an issue in the vs1053 library, which surfaced because the esp8266 doesn't support interrupts on spi transfers.
The issue was closed because the vs1053 library was modified to support esp8266, unfortunately not because esp interrupt support for spi was implemented...@Yveaux said in ESP8266 WiFi gateway port for MySensors:
@Mark-Swift that issue apparently addressed an issue in the vs1053 library, which surfaced because the esp8266 doesn't support interrupts on spi transfers.
The issue was closed because the vs1053 library was modified to support esp8266, unfortunately not because esp interrupt support for spi was implemented...@Yveaux You're right, should have read more before jumping to conclusions :(
Damn, I thought I could finally dump my serial gateway!
-
Is it normal to use GPIO15 ? Isn't it used for booting mode ?
-
Is it normal to use GPIO15 ? Isn't it used for booting mode ?