ESP not talking to server

6 years 7 months ago #2328 by Roach
Hi,

I'm new at EasyIot and today I tried to do the lua door/window sensor with my ESP8266.
My EasyIot server is up and running.
Under virtual in EasyIot server, I've created a Front Door object (virtual N3S0). like discribed in the tutorial.

I also uploaded init.lua and lua_easy_doorwindow.lua to my client (ESP8266).
The ESP is connected to a external powersource and also to my laptop with a usb-ttl converter.
I used ESPlorer to upload the code to the ESP8266 and this is what I see at the moment in ESPlorer at 9600B

Sent
and when I shortly connect GPIO 2 to GND
1
1
Send status




By the way I've traced the systemlogger.log but I don't understand how to read that:

2015-10-03T23:31:18.6845731+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599042
2015-10-03T23:31:20.6249445+02:00 INFO EasyIoTWebinterface EasyIoTConfig Webinterface IsAdmin /Api/EasyIoT/Config/Webinterface/IsAdmin//?_=1443885599043
2015-10-03T23:31:26.0027468+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetIsEnabled//?_=1443885599044
2015-10-03T23:31:26.0097517+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetDebugMode//?_=1443885599045
2015-10-03T23:31:28.0992297+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599046
2015-10-03T23:31:36.4191107+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/RemoveModule/N9S0//
2015-10-03T23:31:44.2496466+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599047
2015-10-03T23:31:46.2100333+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599048
2015-10-03T23:31:18.6845731+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599042
2015-10-03T23:31:20.6249445+02:00 INFO EasyIoTWebinterface EasyIoTConfig Webinterface IsAdmin /Api/EasyIoT/Config/Webinterface/IsAdmin//?_=1443885599043
2015-10-03T23:31:26.0027468+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetIsEnabled//?_=1443885599044
2015-10-03T23:31:26.0097517+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetDebugMode//?_=1443885599045
2015-10-03T23:31:28.0992297+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599046
2015-10-03T23:31:36.4191107+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/RemoveModule/N9S0//
2015-10-03T23:31:44.2496466+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599047
2015-10-03T23:31:46.2100333+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599048

Anyway, I dont know if the ESP8266 or the Front Door object at the server is configured correct, so here are my questions::
How can I check if the ESP8266 is talking to the server? Can I give a command in lua to check this? What I'm a mssing?

Thanks for reading and hope you can help me ;-)

Kind regards

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

6 years 7 months ago #2342 by EasyIoT
Replied by EasyIoT on topic ESP not talking to server

Roach wrote: Hi,

I'm new at EasyIot and today I tried to do the lua door/window sensor with my ESP8266.
My EasyIot server is up and running.
Under virtual in EasyIot server, I've created a Front Door object (virtual N3S0). like discribed in the tutorial.

I also uploaded init.lua and lua_easy_doorwindow.lua to my client (ESP8266).
The ESP is connected to a external powersource and also to my laptop with a usb-ttl converter.
I used ESPlorer to upload the code to the ESP8266 and this is what I see at the moment in ESPlorer at 9600B

Sent
and when I shortly connect GPIO 2 to GND
1
1
Send status




By the way I've traced the systemlogger.log but I don't understand how to read that:

2015-10-03T23:31:18.6845731+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599042
2015-10-03T23:31:20.6249445+02:00 INFO EasyIoTWebinterface EasyIoTConfig Webinterface IsAdmin /Api/EasyIoT/Config/Webinterface/IsAdmin//?_=1443885599043
2015-10-03T23:31:26.0027468+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetIsEnabled//?_=1443885599044
2015-10-03T23:31:26.0097517+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetDebugMode//?_=1443885599045
2015-10-03T23:31:28.0992297+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599046
2015-10-03T23:31:36.4191107+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/RemoveModule/N9S0//
2015-10-03T23:31:44.2496466+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599047
2015-10-03T23:31:46.2100333+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599048
2015-10-03T23:31:18.6845731+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599042
2015-10-03T23:31:20.6249445+02:00 INFO EasyIoTWebinterface EasyIoTConfig Webinterface IsAdmin /Api/EasyIoT/Config/Webinterface/IsAdmin//?_=1443885599043
2015-10-03T23:31:26.0027468+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetIsEnabled//?_=1443885599044
2015-10-03T23:31:26.0097517+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/GetDebugMode//?_=1443885599045
2015-10-03T23:31:28.0992297+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599046
2015-10-03T23:31:36.4191107+02:00 INFO EasyIoTWebinterface EasyIoTConfig Driver Virtual /Api/EasyIoT/Config/Driver/Virtual/RemoveModule/N9S0//
2015-10-03T23:31:44.2496466+02:00 INFO EasyIoTWebinterface EasyIoTConfig Group List /Api/EasyIoT/Config/Group/List/?_=1443885599047
2015-10-03T23:31:46.2100333+02:00 INFO EasyIoTWebinterface EasyIoTConfig Module List /Api/EasyIoT/Config/Module/List//?_=1443885599048

Anyway, I dont know if the ESP8266 or the Front Door object at the server is configured correct, so here are my questions::
How can I check if the ESP8266 is talking to the server? Can I give a command in lua to check this? What I'm a mssing?

Thanks for reading and hope you can help me ;-)

Kind regards


I do not see your sensor set value in EasyIoT server log. Try with disabled firewall.

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

Time to create page: 0.218 seconds

Forum latest

  • No posts to display.