MQTT sample setup on ESP8266
-
Again me ,
Is it possible to test MQTT to mycontroller without ESP ?
Can you give me, please, some MQTT order example to understand what is wrong.
MQTT works fine , made some test with domoticz implemented on the same server.
Thanks. -
@Stephan35 said:
First i try autodetect MQTT server, but failed .
On MyController server your have to enable
mcc.mdns.service.enable=true
on mycontroller.properties and stop and start.#define FACTORY_RESET_PIN 4
#define FACTORY_RESET_PIN_STATE 4
#define FACTORY_RESET_TIME 1000*1 //hold the button 9 secondsNo success , still no AP .
FACTORY_RESET_PIN_STATE
should be either0
or1
. When you press the button, If your pin(FACTORY_RESET_PIN
) connects onGND
, Then you have to enter0
, otherwise1
.MC[I]: Sending mDNS query[_mc_mqtt._tcp]...
Skipping compressed pointerYes, Sometimes I see this error when we use mDNS enabled on ESP device. This error happens on mDNS library.
-
These lines missing at the end of mycrontroller.properties files , very strange :
mcc.clear.message.queue.on.start=true
mcc.clear.smart.sleep.msg.queue.on.start=true#========================================================================
MyController mDNS service settings
Enable or disable mDNS service
#========================================================================
mcc.mdns.service.enable=trueAnyway, now ESP is connected to my home wireless , i forced ip of mqtt, because discover does not work correctly, and , i dont see anything with mqtt.
So i decided to fully reinstall mycontroller , to understand where i am wrong .
-
Ok now i installed lasted git version.
Here is screen shot :
Gateway
And arduino usb debug
Esp is configured as mentionned at AP Setting
Now, what next ?
MyController seem to be interesting, but, very hard to get it work ... for me .
Is there somewhere any video ? to explain how it work with example and sample.
Thanks
-
Now, what next ?
You can use your ESP as a node and can fun with your sensors with monitor, reports, and actions...
MyController seem to be interesting, but, very hard to get it work ... for me .
Is there somewhere any video ? to explain how it work with example and sample.I am sorry for this. Right now we do not have any videos. I will update a video when I get time. Thank you for your valuable feedback.
-
Thank for your support.
You can use your ESP as a node and can fun with your sensors with monitor, reports, and actions...
I am very sad : nothing appear in node and sensor.
So i was completly wrong about thinking autodiscover node with MQTT ?
I have to add manually all node and sensors ?
Or my arduino sketch does not contain good command to put it in mycontroller ?Thanks
Best regards -
Hello,
Me again .
So now esp seem to send data to mqtt , here is usb logger :If i correctly understand, ESP_8C0125 connect to broker and subscribe to in_esp/ESP_8c0125
[in_esp/ESP_8C0125/#]Ok , here is mqtt box sniffer :
etc
etc
etcMyController does not see anything ... Arrghhh , going to be mad !!!
ID Client have to set to esp_client , but esp client is ESP_8C0125 ?
If changed ti ESP_8C0125, failed connect ...inverting in_esp and out_esp does not change anything ?
Can you drive me please to get it work .....
Thanks
-
@Stephan35 Sorry for the inconvenience caused.
I see you have selected
MySensors
as a network type. Which is wrong. You have to selectMyController
as network type if you use https://github.com/mycontroller-org/MyControllerDevice
I believe you are using built in MQTT broker. What is your MyController local IP? Is it192.168.0.25?
Here is screenshot from my setup,
in_esp
>> feed data to ESP devicesout_esp
>> data from ESP devices
-
Ok,
What is your MyController local IP? Is it 192.168.0.25?
Yes MyController local IP is 192.168.0.25 (depending of wich router is connected to)
believe you are using built in MQTT broker.
What do you mean by using built in MQTT broker ? this one : First image of this post
Because i have installed mosquitto also , do MyController have it self mqtt broker ?
AND SHOULD IT WORK ALONE ???
I guess my big mistake was there ...Also , I have so solve install from github to get last version as your .
Thanks again for support
-
What do you mean by using built in MQTT broker ? this one : First image of this post
Because i have installed mosquitto also , do MyController have it self mqtt broker ?
AND SHOULD IT WORK ALONE ???Yes, MyController has built in broker. No need to install any external brokers like mosquitto. If you want to use an external broker. Kindly disable internal (inbuilt) broker first.
Also , I have so solve install from github to get last version as your .
You can download most recent version from here.
From your post picture, I see you have selected
MySensors
as a network. Which is wrong. SelectMyController
as a network type. -
Here is some good news !!!
First after getting update from github , here is some screen shot from GUI
We can see that MyController is in the list !
Also, Esp send correctly data to mosquitto (which i use by default)
Now , i have to test and learn to send data , like temperature or lighmeter .
Thank you for your time and your support.