internet connected switch (EasyIoT Cloud MQTT API)

8 years 5 months ago #2547 by whogarden
Hello,
I try to use the tuto : internet connected switch (EasyIoT Cloud MQTT API),
I installed the files linked in the tuto : " github.com/iot-playground/EasyIoT-Cloud/...r/libraries/esp-mqtt ".
...
With Arduino IDE I have a lot of errors like :
undefined reference to `MQTT_InitConnection'
undefined reference to `MQTT_InitClient'
an so one .....
Sure, something is missing, but what? Where? (in MQTT libraries?)
Can you help me I don't know what to do.
Thank you.

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

8 years 5 months ago #2555 by EasyIoT

whogarden wrote: Hello,
I try to use the tuto : internet connected switch (EasyIoT Cloud MQTT API),
I installed the files linked in the tuto : " github.com/iot-playground/EasyIoT-Cloud/...r/libraries/esp-mqtt ".
...
With Arduino IDE I have a lot of errors like :
undefined reference to `MQTT_InitConnection'
undefined reference to `MQTT_InitClient'
an so one .....
Sure, something is missing, but what? Where? (in MQTT libraries?)
Can you help me I don't know what to do.
Thank you.


Did you downloaded whole MQTT library? MQTT_InitConnection is in this file github.com/iot-playground/EasyIoT-Cloud/...mqtt/src/mqtt/mqtt.c

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

8 years 5 months ago #2562 by whogarden
Hello,
I deleted and reinstalled the libraries and now the upload is OK, but it doesn't work, I have the same problems as the 5 comments of the tuto page.
With the debug, I have no message in serial
I paid attention to
Change lines 7, 8, 10, 11 and 15 with the good values...
The wifi is activated (seen by android tablet)
and is seen in the home network 192.168.1.26
The module is powered with a 3.3V 3A alim.
There is a 2200uF on the 3.3V.
I tried with an esp 01 and an esp12 nothing works.
What can I do now please?

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

8 years 5 months ago #2569 by EasyIoT

whogarden wrote: Hello,
I deleted and reinstalled the libraries and now the upload is OK, but it doesn't work, I have the same problems as the 5 comments of the tuto page.
With the debug, I have no message in serial
I paid attention to
Change lines 7, 8, 10, 11 and 15 with the good values...
The wifi is activated (seen by android tablet)
and is seen in the home network 192.168.1.26
The module is powered with a 3.3V 3A alim.
There is a 2200uF on the 3.3V.
I tried with an esp 01 and an esp12 nothing works.
What can I do now please?


The easiest way to test it is to use only Node MCU ESP8266. Uncomment #define DEBUG at the beginning of the program and then use serial monitor in Arduino IDE. You will be also able to control on board LED.

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

8 years 4 months ago #2578 by whogarden
Hello,
I have seen that the pb desappears if I comment (in debug mode) the 2 lines with "BUILTIN_LED".
But, now, on the serial, I only have :
Connecting to Livebox-3262
............
WiFi connected
IP address:
192.168.1.25
Connecting to MQTT server
MQTT client id:18:fe:34:e6:7e:3b-c2
connected to MQTT server

One time I could see "/Db/5641f8b5cf045c757f7e62fa/5/Sensor.Parameter1: 1"
But I put 4 in the line "MQTT myMqtt" because I've #4 on the Android tablet.
It was after some modules deleted. But they are always back , I have now 3 modules (#3, #4 and #5).
I just need one to test now, so can you delete them (#3, #4 and #5) please.
Will it be possible to use more than one switch?
Thanks.

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

8 years 4 months ago #2579 by EasyIoT

whogarden wrote: Hello,
I have seen that the pb desappears if I comment (in debug mode) the 2 lines with "BUILTIN_LED".
But, now, on the serial, I only have :
Connecting to Livebox-3262
............
WiFi connected
IP address:
192.168.1.25
Connecting to MQTT server
MQTT client id:18:fe:34:e6:7e:3b-c2
connected to MQTT server

One time I could see "/Db/5641f8b5cf045c757f7e62fa/5/Sensor.Parameter1: 1"
But I put 4 in the line "MQTT myMqtt" because I've #4 on the Android tablet.
It was after some modules deleted. But they are always back , I have now 3 modules (#3, #4 and #5).
I just need one to test now, so can you delete them (#3, #4 and #5) please.
Will it be possible to use more than one switch?
Thanks.


You can delete modules by yourself. Login to WEB interface and go to Configure->Modules and then click on right of module you want to delete. In next screen you have delete module.

Of course you can have more than one switch.

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

Time to create page: 0.332 seconds

Forum latest

  • No posts to display.