These are chat archives for esp8266/Arduino

1st
Apr 2017
Tejas H
@CodingCreate101
Apr 01 2017 02:29 UTC
Hi guys, I need a clarification. Please help out. I am working on a project where few clients are connected to the AP and information sent from different client is forwarded by the AP and further those clients are connected to different things. Now I am willing to add a feature "status". By that, i should be able to get the status of all the clients to my mobile phone. My first thought is something like this: I send certain command to the AP, AP sends command to other clients, clients collect data from "other devices" and respond to AP. AP waits until all the clients responded and finally sends me the information in long string format. Now, here is a question, is it good way or are there any better ways? If it is good way, what should be the length of the string should be? Is there a limit and why?
Martin Sloup
@arcao
Apr 01 2017 07:28 UTC
Use MQTT for this.
Tejas H
@CodingCreate101
Apr 01 2017 10:47 UTC
Alright, I'll look into it.
sri1609
@sri1609
Apr 01 2017 11:44 UTC
Hi guys, I am new to ESP8266 programming. I have two ESP device. One as AP (master) and other as Station (client). The station reads the serial data from the microcontroller (I verified the serial data coming out of microcontroller with Hterm terminal software). The client sends the serial data received from the microcontroller to the master via TCP protocol. This is the objective of my work. But before using microcontroller data, i tried to manually input the serial data from PC using Hterm by typing characters on the window. The problem i am facing is, sometimes the master receives the data sent by client and sometimes it is not receiving the data. I am losing data more than 60% of the time. I am not able to troubleshoot the issue. As far as i can understand, TCP protocol will try to send the data till it gets delivered to the master. But it is not happening in this case. Kindly guide me through this.
sri1609
@sri1609
Apr 01 2017 11:53 UTC
i have posted this as issue #3102
Tejas H
@CodingCreate101
Apr 01 2017 20:46 UTC
Hi @arcao i looked mqtt. Tried few examples. It's cool. I just wanna know, why usual TCP is a bad guy here? What practical advantages do i have using MQTT? Thanks in advance!