internet connected switch (EasyIoT Cloud MQTT API)

4 years 7 months ago #2628 by whogarden
Hello,
Thanks for your patience.
Using debug.
It as just worked one time, in the program I put "....7f7e62fa/3/Sensor.Parameter1". to use the module #3
but in the serial I have :
/Db/5641f8b5cf045c757f7e62fa/5/Sensor.Parameter1: 1
switch state
1
I don't understand why #3 is changed to run # 5.
Now it's again and again not working, reflashing. and so one.
It seems that the program doesn't go further than : "waitOk(); in line 120 of ESP8266_relay_switch_MQTT by EasyIoT
Any idea?

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

4 years 7 months ago #2650 by whogarden
Hello,
Do you think that my problem can be :
EEPROM.begin(512); in the sketch
and my ESP8266-01 is a new 1Mbyte module?

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

4 years 7 months ago #2651 by BadBallscrewBob
A lot of the newer ones are 1mb It is pretty easy to identify these as for the most part they are black or very dark in colours

I am trying to remember where I found a test sketch for the arduino ide that checks the memory size.

Have included a screen shot of the newer ones and a shot of my settings for them.

Do unto others before they get chance to scr3w you over
Attachments:

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

4 years 6 months ago #2655 by whogarden
Thank you, I tested with testflashconfig and found errors with my ESP01 so I am now using an ESP8266-12E the result of this test is :
ESP8266-12E
Flash ide size: 4194304
Flash ide speed: 40000000
Flash ide mode: DIO
Flash Chip configuration ok.

Trying the 'internet connected switch' with that module, using sensor 3 It was strangly connected to sensor 2 (see attachment).
I sign in the server to change the #2 DI (it was garage door) to DO (relay) to make it work.
But a new module appears in a group created as default.
It's module 0 #6 undefined.

Since, unable to connect to use relay (with //#define DEBUG).
Am I newbie 0.0
Attachments:

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

4 years 6 months ago - 4 years 6 months ago #2656 by BadBallscrewBob
I had some problems to at the very beginning with the newer esp01's
Had to use differing baud rates to talk to each one
The fix for me was to make sure the firmware was updated.
After that they behaved themselves. I think it was to do with the two copies of the same firmware.
One is from the cheaper clone copies and the other is the Expressif copy (I think)

If yours says Ai-Cloud instead of AI-Thinker on the board then I would suggest update firmware.

iot-playground.com/2-uncategorised/35-esp8266-firmware-update

That Is one method but I used a different one similar to the link below.


Do unto others before they get chance to scr3w you over

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

4 years 6 months ago #2660 by whogarden
Hello,
(I am now using an ESP8266-12E).
Flashing the "EasyIoT_Cloud_Relay" sketch with sensor 1.
When the esp connects to the IoTcloud server, it's on the sensor 2 (see attachment).
If I put 2 in the sketch, I have also the control on the same sensor 2.
So impossible to drive 2 relays?
Any idea? Thank you.
Attachments:

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

Time to create page: 0.243 seconds

Forum latest

  • No posts to display.