Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Wifi connection to AI-Thinker AI Light after updating flash to 1.90 using web interface #190

Closed
xoseperez opened this issue Aug 26, 2017 · 23 comments

Comments

@xoseperez
Copy link
Owner

Originally reported by: BrentK (Bitbucket: brentk01, GitHub: Unknown)


I just updated one of my AI-Thinker AI Lights to version 1.90 (from 1.83) using the built in web interface - updated to the latest .bin file from downloads.
The AI light no longer connects to my Wifi and does not go into AP mode so I am unable to access it at all.
Should my Wifi credentials still be saved after a flash?
Unfortunately, on this particular light, I broke the pad off the TX pin so cannot reflash via Arduino.
Is there any way out of this situation other than trying to solder a wire directly to the TX pin on the ESP8266 chip?

@xoseperez
Copy link
Owner Author

AP mode is not working either? The only reason for this is that something went terribly wrong with the update... Without wireless access to the bulb I'm afraid the only way is wired...

@xoseperez
Copy link
Owner Author

Original comment by BrentK (Bitbucket: brentk01, GitHub: Unknown):


AP mode does not come up. I tried flashing a second bulb in the same manner with the same result - not available on wifi or as AP

@xoseperez
Copy link
Owner Author

It could be the firmware being stuck with some other task. Latest version had a problem with MQTT that might cause an endless connnect-disconnect loop, meanwhile the web interface becomes irresponsive...
Can you check with some network monitor if the light is visible (I normally use Fing for Android)?

@xoseperez
Copy link
Owner Author

Original comment by BrentK (Bitbucket: brentk01, GitHub: Unknown):


The lights are configured to get a static IP address based on their MAC address from the DHCP server on my DD-WRT router. I checked in the router and it no longer sees them come up as a DHCP client after I delete previously existing the DHCP lease and it doesn't show up as an active client in the router. Also unable to ping the address. Not currently home so unable to try any other tools, but it definitely looks like it is not starting up properly after being flashed.

@xoseperez
Copy link
Owner Author

Original comment by BrentK (Bitbucket: brentk01, GitHub: Unknown):


Just tried scanning with Fing as suggested - Light not found and not available as AP. So definitely totally unresponsive after flash.

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


Same problem here after upgrading from 1.8.3 to 1.9.1 using the web interface.
Tried flashing with the wires both versions but nothing. Sometimes it connects to the router but quickly loses connection and no AP network is available.
Flashing the official SDK didn't help.
Any ideia how to reset the settings?
Capture.PNG
fhaIcwa.jpg

@xoseperez
Copy link
Owner Author

Try erasing flash and reflash using DOUT flash mode and 8Mbit flash size.

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


How to erase? I flashed all the files with 8Mbit and 32Mbit in DIO.

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


Tried DOUT and 8Mbit. but same problem.
I'm using this command to flash espurna: "esptool.exe -vv -cd nodemcu -cb 115200 -cp COM3 -ca 0x00000 -cf espurna-1.9.1-aithinker-ai-light.bin"

@xoseperez
Copy link
Owner Author

Since you have it wired, can you access the debug log via serial and copy it here (open a serial connection at 115200 baud)?

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


Apparently does not disconnect, but tried opening the page and never loads.

#!arduino

[MQTT] Connecting to broker at 192.168.2.2:1883
[NTP] Error: NTP server not reachable
[MQTT] Connected!
[MAIN] Time: Not set
[MQTT] Sending /ailight1/app => ESPurna (PID 1)
[MQTT] Sending /ailight1/version => 1.9.1 (PID 1)
[MQTT] Sending /ailight1/host => ailight1 (PID 1)
[MQTT] Sending /ailight1/ip => 192.168.2.227 (PID 1)
[MQTT] Sending /ailight1/mac => A0:20:A6:2F:01:EA (PID 1)
[MQTT] Sending /ailight1/rssi => -47 (PID 1)
[MQTT] Sending /ailight1/uptime => 11 (PID 1)
[MQTT] Sending /ailight1/freeheap => 22904 (PID 1)
[MQTT] Sending /ailight1/relay/0 => 1 (PID 1)
[MQTT] Sending /ailight1/color => #000000 (PID 1)
[MQTT] Sending /ailight1/brightness => 255 (PID 1)
[MQTT] Sending /ailight1/channel/0 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/1 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/2 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/3 => 0 (PID 1)
[MQTT] Sending /ailight1/vcc => 3027 (PID 1)
[MQTT] Sending /ailight1/status => 1 (PID 1)
[MQTT] Subscribing to /ailight1/brightness/set (PID 1)
[MQTT] Subscribing to /ailight1/mired/set (PID 2)
[MQTT] Subscribing to /ailight1/kelvin/set (PID 3)
[MQTT] Subscribing to /ailight1/color/set (PID 4)
[MQTT] Subscribing to /ailight1/channel/+/set (PID 5)
[MQTT] Subscribing to /ailight1/relay/+/set (PID 6)
[MQTT] Subscribing to /ailight1/led/+/set (PID 7)
[MQTT] Subscribing to /ailight1/action/set (PID 8)
[MQTT] Subscribing to domoticz/out (PID 9)
[MQTT] Received /ailight1/relay/0 => 1 - SKIPPED
[MQTT] Received /ailight1/color => #000000
[MQTT] Subscribe ACK for PID 1
[MQTT] Subscribe ACK for PID 2
[MQTT] Subscribe ACK for PID 3
[MQTT] Subscribe ACK for PID 4
[MQTT] Subscribe ACK for PID 5
[MQTT] Subscribe ACK for PID 6
[MQTT] Subscribe ACK for PID 7
[MQTT] Subscribe ACK for PID 8
[MQTT] Subscribe ACK for PID 9
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Time: Not set
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /auth
[WEBSERVER] Request: GET /auth
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


And a reboot after some time:

#!arduino

[MQTT] Connecting to broker at 192.168.2.2:1883
[NTP] Error: NTP server not reachable
[MQTT] Connected!
[MAIN] Time: Not set
[MQTT] Sending /ailight1/app => ESPurna (PID 1)
[MQTT] Sending /ailight1/version => 1.9.1 (PID 1)
[MQTT] Sending /ailight1/host => ailight1 (PID 1)
[MQTT] Sending /ailight1/ip => 192.168.2.227 (PID 1)
[MQTT] Sending /ailight1/mac => A0:20:A6:2F:01:EA (PID 1)
[MQTT] Sending /ailight1/rssi => -47 (PID 1)
[MQTT] Sending /ailight1/uptime => 11 (PID 1)
[MQTT] Sending /ailight1/freeheap => 22904 (PID 1)
[MQTT] Sending /ailight1/relay/0 => 1 (PID 1)
[MQTT] Sending /ailight1/color => #000000 (PID 1)
[MQTT] Sending /ailight1/brightness => 255 (PID 1)
[MQTT] Sending /ailight1/channel/0 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/1 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/2 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/3 => 0 (PID 1)
[MQTT] Sending /ailight1/vcc => 3027 (PID 1)
[MQTT] Sending /ailight1/status => 1 (PID 1)
[MQTT] Subscribing to /ailight1/brightness/set (PID 1)
[MQTT] Subscribing to /ailight1/mired/set (PID 2)
[MQTT] Subscribing to /ailight1/kelvin/set (PID 3)
[MQTT] Subscribing to /ailight1/color/set (PID 4)
[MQTT] Subscribing to /ailight1/channel/+/set (PID 5)
[MQTT] Subscribing to /ailight1/relay/+/set (PID 6)
[MQTT] Subscribing to /ailight1/led/+/set (PID 7)
[MQTT] Subscribing to /ailight1/action/set (PID 8)
[MQTT] Subscribing to domoticz/out (PID 9)
[MQTT] Received /ailight1/relay/0 => 1 - SKIPPED
[MQTT] Received /ailight1/color => #000000
[MQTT] Subscribe ACK for PID 1
[MQTT] Subscribe ACK for PID 2
[MQTT] Subscribe ACK for PID 3
[MQTT] Subscribe ACK for PID 4
[MQTT] Subscribe ACK for PID 5
[MQTT] Subscribe ACK for PID 6
[MQTT] Subscribe ACK for PID 7
[MQTT] Subscribe ACK for PID 8
[MQTT] Subscribe ACK for PID 9
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Error: NTP server not reachable
[NTP] Time: Not set
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /auth
[WEBSERVER] Request: GET /auth
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /index.html
[MAIN] Time: 2017/08/29 11:30:17
[MQTT] Sending /ailight1/app => ESPurna (PID 1)
[MQTT] Sending /ailight1/version => 1.9.1 (PID 1)
[MQTT] Sending /ailight1/host => ailight1 (PID 1)
[MQTT] Sending /ailight1/ip => 192.168.2.227 (PID 1)
[MQTT] Sending /ailight1/mac => A0:20:A6:2F:01:EA (PID 1)
[MQTT] Sending /ailight1/rssi => -54 (PID 1)
[MQTT] Sending /ailight1/uptime => 300 (PID 1)
[MQTT] Sending /ailight1/freeheap => 24416 (PID 1)
[MQTT] Sending /ailight1/relay/0 => 1 (PID 1)
[MQTT] Sending /ailight1/color => #000000 (PID 1)
[MQTT] Sending /ailight1/brightness => 255 (PID 1)
[MQTT] Sending /ailight1/channel/0 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/1 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/2 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/3 => 0 (PID 1)
[MQTT] Sending /ailight1/vcc => 3031 (PID 1)
[MQTT] Sending /ailight1/status => 1 (PID 1)
[MQTT] Received /ailight1/relay/0 => 1

Exception (9):
epc1=0x40104814 epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000003 depc=0x00000000

ctx: sys 
sp: 3ffffa40 end: 3fffffb0 offset: 01a0

>>>stack>>>
3ffffbe0:  00000000 00001fb1 3fff3cec 402343c9  
3ffffbf0:  40104a40 0599c9db 3fff1830 00000000  
3ffffc00:  3ffeeed0 3fff1830 3fff3cac 40207bd8  
3ffffc10:  00000000 0599c8a3 40203770 00000001  
3ffffc20:  3fff1830 3ffffd30 3ffffd40 3ffffd40  
3ffffc30:  3ffffd30 00000027 3fff0658 4021cf42  
3ffffc40:  54514d5b 52205d54 69656365 20646576  
3ffffc50:  6c69612f 74686769 65722f31 2f79616c  
3ffffc60:  3e3d2030 000a3120 00000018 ffffffff  
3ffffc70:  00000000 00200000 3ffee8c0 00000000  
3ffffc80:  fffffff0 00000000 3ffee110 00200000  
3ffffc90:  514d5b00 205d5454 65636552 64657669  
3ffffca0:  20732520 25203e3d 5b000a73 5454514d  
3ffffcb0:  6552205d 76696563 25206465 3e3d2073  
3ffffcc0:  20732520 4b53202d 45505049 5b000a44  
3ffffcd0:  5454514d 6944205d 6e6f6373 7463656e  
3ffffce0:  00000165 3ffffd10 3ffffd00 00000004  
3ffffcf0:  3ffe91f0 6401a8c0 402251af 00000000  
3ffffd00:  ffffffff 3fff2ab4 3ffffd30 00000003  
3ffffd10:  0000041e 3ffffd30 0000001f 401048fd  
3ffffd20:  4000050c 3ffffd40 3fff2ab4 4021e404  
3ffffd30:  40210031 00000030 0000000d 00000000  
3ffffd40:  3ffecce3 3fff575c 3ffffda0 401004d8  
3ffffd50:  00000016 00000016 3fff05d1 00000000  
3ffffd60:  3ffecce3 3fff576c 00000000 4021e45d  
3ffffd70:  00000016 3ffeccce 00000000 40216a66  
3ffffd80:  3fff5b1c 11ec8743 00002200 40211da0  
3ffffd90:  00000001 40101eb0 3fffc200 00000002  
3ffffda0:  3fff5ef4 00000003 402171d4 4021e44c  
3ffffdb0:  40000000 00000030 0000000d ffffffff  
3ffffdc0:  3fff576c 3fff2ab4 00000000 3fff617c  
3ffffdd0:  3fff18d8 000007b0 000007b0 00000000  
3ffffde0:  3ffffe50 00000001 3fff60fc 402168f9  
3ffffdf0:  00000001 00000000 00000001 00000000  
3ffffe00:  3ffeccce 00000016 3fff0464 402131e1  
3ffffe10:  00000001 00000000 00000001 00000000  
3ffffe20:  3ffeccce 00000016 3fff0464 40211b95  
3ffffe30:  3fff5acc 000008bf 40210e58 40216868  
3ffffe40:  3fff6164 00000006 40210e0c 402168c0  
3ffffe50:  00000015 00000000 00000000 40107668  
3ffffe60:  3fff05d1 3fff60fc 3fff617c 40235b84  
3ffffe70:  3fff18d8 000007a6 000007a6 3fff04b8  
3ffffe80:  00000001 3fff5ecc 3fff0464 40211bc8  
3ffffe90:  4022a7b1 00000000 3fff0464 4020a714  
3ffffea0:  3fff5dfc 3fff5e00 3fff5dfc 40231c2d  
3ffffeb0:  3fff2228 3fff2234 00000006 3fff1ec4  
3ffffec0:  3fff5dfc 3fff1ecc 3fff1ec8 4020a767  
3ffffed0:  3fff5dfc 3fff1ecc 3fff1ec8 402384b4  
3ffffee0:  00000016 e302a8c0 00000018 00000016  
3ffffef0:  00000018 00000000 3ffeab90 40107658  
3fffff00:  40220000 3ffee368 00000000 3fff222c  
3fffff10:  3ffecca6 3fff2234 3fff5ecc 4023589d  
3fffff20:  3fff1dcc 3fff5b1c 3fff5b1c 3ffefb20  
3fffff30:  00000000 3fff5ecc 0000001c 3fff5b1c  
3fffff40:  3ffecc98 00000000 3fff5ecc 40234c99  
3fffff50:  0202a8c0 00000074 00000000 00000030  
3fffff60:  00000002 0000001a 40224b13 3ffee520  
3fffff70:  3ffecc70 3fffdcc0 3ffeabd0 3ffeabd0  
3fffff80:  40224a86 3ffee520 00000000 3fff5b74  
3fffff90:  3fffdc80 00000000 3fff5ecc 4022da2b  
3fffffa0:  40000f49 3fffdab0 3fffdab0 40000f49  
<<<stack<<<

 ets Jan  8 2013,rst cause:1, boot mode:(3,3)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
~ld


ESPurna 1.9.1
xose.perez@gmail.com
http://tinkerman.cat

CPU chip ID: 0x2F01EA
CPU frequency: 80 MHz
SDK version: 1.5.3(aec24ac9)
Core version: 2_3_0

Flash chip ID: 0x16301C
Flash speed: 40000000 Hz
Flash mode: DOUT

Flash sector size:     4096 bytes
Flash size (CHIP):  4194304 bytes
Flash size (SDK):   1048576 bytes /  256 sectors
Firmware size:       457936 bytes /  112 sectors
OTA size:            569344 bytes /  139 sectors
SPIFFS size:              0 bytes /    0 sectors
EEPROM size:           4096 bytes /    1 sectors
Empty space:          16384 bytes /    4 sectors

Last reset reason: Exception
Free heap: 33536 bytes


[SETTINGS] EEPROM size: 4096 bytes
[SETTINGS] Settings size: 662 bytes
[WEBSERVER] Webserver running on port 80
[RELAY] #0 scheduled ON in 0 ms
[RELAY] #0 set to ON
[RELAY] Number of relays: 1
[BUTTON] Number of buttons: 0
[LED] Number of leds: 0
[LED] Led auto indicator is ON
[MAIN] Time: Not set
[MAIN] Uptime: 0 seconds
[MAIN] Free heap: 25856 bytes
[MAIN] Power: 3046 mV
[WIFI] Connecting to dreamfalcon_2
[RELAY] Saving mask: 1
[WIFI] MODE STA -------------------------------------
[WIFI] SSID dreamfalcon_2
[WIFI] IP   192.168.2.227
[WIFI] MAC  A0:20:A6:2F:01:EA
[WIFI] GW   192.168.2.1
[WIFI] DNS  8.8.8.8
[WIFI] MASK 255.255.255.0
[WIFI] HOST ailight1
[WIFI] ----------------------------------------------
[MDNS] OK
[NTP] Error: NTP server not reachable
[SETTINGS] Saving
[NTP] Time: Not set
[MQTT] Connecting to broker at 192.168.2.2:1883
[MQTT] Connected!
[MAIN] Time: 2017/08/29 11:30:28
[MQTT] Sending /ailight1/app => ESPurna (PID 1)
[MQTT] Sending /ailight1/version => 1.9.1 (PID 1)
[MQTT] Sending /ailight1/host => ailight1 (PID 1)
[MQTT] Sending /ailight1/ip => 192.168.2.227 (PID 1)
[MQTT] Sending /ailight1/mac => A0:20:A6:2F:01:EA (PID 1)
[MQTT] Sending /ailight1/rssi => -49 (PID 1)
[MQTT] Sending /ailight1/uptime => 10 (PID 1)
[MQTT] Sending /ailight1/freeheap => 24456 (PID 1)
[MQTT] Sending /ailight1/relay/0 => 1 (PID 1)
[MQTT] Sending /ailight1/color => #000000 (PID 1)
[MQTT] Sending /ailight1/brightness => 255 (PID 1)
[MQTT] Sending /ailight1/channel/0 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/1 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/2 => 0 (PID 1)
[MQTT] Sending /ailight1/channel/3 => 0 (PID 1)
[MQTT] Sending /ailight1/vcc => 3046 (PID 1)
[MQTT] Sending /ailight1/status => 1 (PID 1)
[MQTT] Subscribing to /ailight1/brightness/set (PID 1)
[MQTT] Subscribing to /ailight1/mired/set (PID 2)
[MQTT] Subscribing to /ailight1/kelvin/set (PID 3)
[MQTT] Subscribing to /ailight1/color/set (PID 4)
[MQTT] Subscribing to /ailight1/channel/+/set (PID 5)
[MQTT] Subscribing to /ailight1/relay/+/set (PID 6)
[MQTT] Subscribing to /ailight1/led/+/set (PID 7)
[MQTT] Subscribing to /ailight1/action/set (PID 8)
[MQTT] Subscribing to domoticz/out (PID 9)
[MQTT] Received /ailight1/relay/0 => 1
[MQTT] Received /ailight1/color => #000000
[MQTT] Subscribe ACK for PID 1
[MQTT] Subscribe ACK for PID 2
[MQTT] Subscribe ACK for PID 3
[MQTT] Subscribe ACK for PID 4
[MQTT] Subscribe ACK for PID 5
[MQTT] Subscribe ACK for PID 6
[MQTT] Subscribe ACK for PID 7
[MQTT] Subscribe ACK for PID 8
[MQTT] Subscribe ACK for PID 9

@xoseperez
Copy link
Owner Author

I can't see anything specially relevant in the log. Tonight I will test it with one of the AiLights I have (both running 1.9.1 without problems, thou). If you don't mind: don't remove the wires, just in case I need a tester :)

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


No problem.
I was testing just connect to the USB, no 220V.
I had the same problem in the beginning when trying to flash the bin compiled on my pc. But when flashing your version work great.

@xoseperez
Copy link
Owner Author

Ok, I managed to reproduce the issue with one of the bulbs.

The bulb crashes on boot in the ticker callback created in the lightUpdate method of the light.ino module. Ultimately this callback performed a debugSend_P where another bug was executing the UDP code when it shouldn't...

I've fixed both problems by 1) using a flag on the Embedis save callback and checking whether I should commit the changes in the module loop and 2) fixing the compile checks in the debug.ino module.

@dreamfalcon do you have the chance to test the code using the latests changes in the dev branch? Hopefully you light bulb will be back to life. Unfortunately, @brentk01 , the chances to recover your bulb without wiring it are very low...

Next thing I'll do is to add some boot check to go into a save mode (TBD) if the device enters such a tight crash loop... (see #196)

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


Appears to be working, the webpage opens.
Will test properly later tonight.

@xoseperez
Copy link
Owner Author

Original comment by BrentK (Bitbucket: brentk01, GitHub: Unknown):


I'll have a go at reflashing the light without the broken pad when I get home from work tonight.

@xoseperez
Copy link
Owner Author

Original comment by BrentK (Bitbucket: brentk01, GitHub: Unknown):


I'm not sure if I'm doing something wrong - but I'm unable to compile the dev branch code using Arduino 1.8.3. I get the error listed below:

#!arduino

F:\Arduino\xoseperez-espurna-dev_1.9.1\xoseperez-espurna-b4466f5436a0\code\espurna\light.ino: In function 'void _lightProviderUpdate()':

light:239: error: too many initializers for 'my9291_color_t'

             _my9291->setColor((my9291_color_t) { red, green, blue, white, warm });

                                                                                ^

F:\Arduino\xoseperez-espurna-dev_1.9.1\xoseperez-espurna-b4466f5436a0\code\espurna\light.ino: In function 'void lightSetup()':

light:538: error: no matching function for call to 'my9291::my9291(int, int, <brace-enclosed initializer list>, int)'

         _my9291 = new my9291(MY9291_DI_PIN, MY9291_DCKI_PIN, MY9291_COMMAND, MY9291_CHANNELS);

                                                                                             ^

F:\Arduino\xoseperez-espurna-dev_1.9.1\xoseperez-espurna-b4466f5436a0\code\espurna\light.ino:538:93: note: candidates are:

In file included from F:\Arduino\xoseperez-espurna-dev_1.9.1\xoseperez-espurna-b4466f5436a0\code\espurna\light.ino:27:0:

C:\Portable\arduino-1.8.3\portable\sketchbook\libraries\my9291-master\src/my9291.h:96:9: note: my9291::my9291(unsigned char, unsigned char, my9291_cmd_t)

         my9291(unsigned char di, unsigned char dcki, my9291_cmd_t command);

         ^

C:\Portable\arduino-1.8.3\portable\sketchbook\libraries\my9291-master\src/my9291.h:96:9: note:   candidate expects 3 arguments, 4 provided

C:\Portable\arduino-1.8.3\portable\sketchbook\libraries\my9291-master\src/my9291.h:92:7: note: constexpr my9291::my9291(const my9291&)

 class my9291 {

       ^

C:\Portable\arduino-1.8.3\portable\sketchbook\libraries\my9291-master\src/my9291.h:92:7: note:   candidate expects 1 argument, 4 provided

C:\Portable\arduino-1.8.3\portable\sketchbook\libraries\my9291-master\src/my9291.h:92:7: note: constexpr my9291::my9291(my9291&&)

C:\Portable\arduino-1.8.3\portable\sketchbook\libraries\my9291-master\src/my9291.h:92:7: note:   candidate expects 1 argument, 4 provided

@xoseperez
Copy link
Owner Author

Original comment by BrentK (Bitbucket: brentk01, GitHub: Unknown):


Just tried to compile the master branch and I get the same error. Version 1.8.3 which I was using previously compiles fine.

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


The bin file
[https://1drv.ms/u/s!Ak4JN8pOSxoIibRCp42PvoeYhSr9Mw](Link URL)
Its working great for now.
Thanks for the fast help and this great firmware.

@xoseperez
Copy link
Owner Author

Original comment by Daniel Silva (Bitbucket: dreamfalcon, GitHub: dreamfalcon):


https://1drv.ms/u/s!Ak4JN8pOSxoIibRCp42PvoeYhSr9Mw

@xoseperez
Copy link
Owner Author

You have not updated the my9291 library to version 2.0.0, the API has changed.

@xoseperez
Copy link
Owner Author

I'm closing this ticket. Version 1.9.2 is out with this fix an a couple off addons I hope will be useful for future issues like this one:

  • Telnet support. You can access remotely to your device via telnet. By default it's only available in the AP interface for security reasons. Telnet allows you to check debug messages and to run terminal commands (change settings, connect/disconnect MQTT, WIFI,.. reset the board, including factory reset).
  • System stability check. If the system resets in less than 60 seconds 5 times in a row the system is flagged as unstable. When unstable only WiFi in AP mode, OTA and Telnet are loaded to avoid as much as possible culprit code.

I hope that this two together could help in an issue like this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant