vintlabs / fauxmoESP

Add voice control of your ESP32 and ESP8266 devices using Amazon Alexa
MIT License
391 stars 71 forks source link

User Exception as soon as Alexa App starts Discovery #132

Closed samtrot closed 3 years ago

samtrot commented 3 years ago

Hello,

FauxmoESP 3.1.2 on nodemcu

I have used the example code and reduced it also. Device gets Wifi connection

However, I get an "user exception" as soon as I start the discovery from the alexa app.

asdf

[WIFI] Connecting to <myWifiSSID> scandone
.wifi evt: 2
.scandone
state: 0 -> 2 (b0)
state: 2 -> 3 (0)
state: 3 -> 5 (10)
add 0
aid 7
cnt 

connected with <myWifiSSID>, channel 11
dhcp client start...
wifi evt: 0
..................ip:192.168.0.47,mask:255.255.255.0,gw:192.168.0.1
wifi evt: 3

[WIFI] STATION Mode, SSID: <myWifiSSID>, IP address: 192.168.0.47
[MAIN] Free heap: 50312 bytes
pm open,type:2 0
[MAIN] Free heap: 49792 bytes
:urn 1024
:urd 1024, 1024, 0
:urn 1024
:urd 1024, 1024, 0
:urn 1024
:urd 1024, 1024, 0
:urn 1024
:urd 1024, 1024, 0
:urn 1024
:urd 1024, 1024, 0
:urn 354
:urd 354, 354, 0
:urn 345
:urch 373, 397
:urch 798, 409
:urch 1235, 411
:urch 1674, 425
:urd 345, 345, 0
:urd 397, 397, 0
:urd 409, 409, 0
:urd 411, 411, 0
:urd 425, 425, 0
:urn 1024
:urd 1024, 1024, 0
No poison after block at: 0x3fff027c, actual data: 0x0 0xa5 0xa5 0xa5

User exception (panic/abort/assert)
--------------- CUT HERE FOR EXCEPTION DECODER ---------------

Abort called

>>>stack>>>

ctx: sys
sp: 3fffed40 end: 3fffffb0 offset: 0000
3fffed40:  00000000 00000000 00000000 3fffecd0  
3fffed50:  000000fe 00000000 00000000 00000000  
3fffed60:  00000000 00000000 00000000 00000000  
3fffed70:  5ffffe00 5ffffe00 fffffffd 00000000  
3fffed80:  00000020 00000000 3fff01cc 402064ce  
3fffed90:  00000001 00000000 3fff01cc 402064e0  
3fffeda0:  3ffee784 3fffedc0 00000001 40100f16  
3fffedb0:  00000253 3fff021e 3fff027c 402032ac  
3fffedc0:  00000000 00000000 80c6a7f0 00000000  
3fffedd0:  3fff01d4 00000000 00000000 40101005  
3fffede0:  00000000 00e76d85 3ffed348 40100558  
3fffedf0:  00448164 00000000 00000000 40219ff4  
3fffee00:  3fff01d4 3fffee60 3fff0084 402139b6  
3fffee10:  3fff01d4 3fffee60 3fff0084 40203e5f  
3fffee20:  00000001 00004a88 00000020 40100feb  
3fffee30:  3ffeff34 00000000 00000000 40100d19  
3fffee40:  3ffe0000 00000005 000001f1 3ffeff34  
3fffee50:  3fff01d4 00000000 3fff0084 40203fe2  
3fffee60:  3ffefa5c 3ffefa7c 00000253 3ffeec74  
3fffee70:  3ffeee18 3ffeeec8 3fff01d4 3ffeec74  
3fffee80:  3ffeff34 3ffeec58 3ffeec59 40213698  
3fffee90:  40219fd4 00000000 00000020 40101038  
3fffeea0:  3ffeee18 2f00a8c0 00000014 40100576  
3fffeeb0:  00000000 000001f1 000001f1 3ffeeec8  
3fffeec0:  3ffeee18 3fff01f2 3fff01d4 4021927a  
3fffeed0:  00000014 3ffeee18 00000020 40100feb  
3fffeee0:  00000000 3ffef0cc 3ffec8d8 3ffef514  
3fffeef0:  3fffdc80 3ffef4a4 3ffefec4 3ffef514  
3fffef00:  00000008 3ffeee18 3fff01d4 40210289  
3fffef10:  3fffdc80 3ffef4a4 3ffefec4 402100a8  
3fffef20:  402301ba 3ffef4a4 3ffefec4 402301cb  
3fffef30:  3fff01e4 3fff01d4 00000002 3ffe84f4  
3fffef40:  4022b0cf 00000000 3ffefec4 40231e67  
3fffef50:  40000f49 3fffdab0 3fffdab0 40000f49  
3fffef60:  40000e19 00000005 00049560 00000000  
3fffef70:  00000000 aa55aa55 00000088 40105001  
3fffef80:  40105007 00049560 00000000 632e5043  
3fffef90:  4010000d 65736f6c 694c0064 6e657473  
3fffefa0:  00000000 3fffef3c 00000000 3ffffee8  
3fffefb0:  3fffffc0 00000000 00000000 feefeffe  
3fffefc0:  feefeffe feefeffe feefeffe feefeffe  
3fffefd0:  feefeffe feefeffe feefeffe feefeffe  
3fffefe0:  feefeffe feefeffe feefeffe feefeffe  
3fffeff0:  feefeffe feefeffe feefeffe feefeffe  
3ffff000:  feefeffe feefeffe feefeffe feefeffe  
3ffff010:  feefeffe feefeffe feefeffe feefeffe  
3ffff020:  feefeffe feefeffe feefeffe feefeffe  
3ffff030:  feefeffe feefeffe feefeffe feefeffe  
3ffff040:  feefeffe feefeffe feefeffe feefeffe  
3ffff050:  feefeffe feefeffe feefeffe feefeffe  
3ffff060:  feefeffe feefeffe feefeffe feefeffe  
3ffff070:  feefeffe feefeffe feefeffe feefeffe  
3ffff080:  feefeffe feefeffe feefeffe feefeffe  
3ffff090:  feefeffe feefeffe feefeffe feefeffe  
3ffff0a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff0f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff100:  feefeffe feefeffe feefeffe feefeffe  
3ffff110:  feefeffe feefeffe feefeffe feefeffe  
3ffff120:  feefeffe feefeffe feefeffe feefeffe  
3ffff130:  feefeffe feefeffe feefeffe feefeffe  
3ffff140:  feefeffe feefeffe feefeffe feefeffe  
3ffff150:  feefeffe feefeffe feefeffe feefeffe  
3ffff160:  feefeffe feefeffe feefeffe feefeffe  
3ffff170:  feefeffe feefeffe feefeffe feefeffe  
3ffff180:  feefeffe feefeffe feefeffe feefeffe  
3ffff190:  feefeffe feefeffe feefeffe feefeffe  
3ffff1a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff1f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff200:  feefeffe feefeffe feefeffe feefeffe  
3ffff210:  feefeffe feefeffe feefeffe feefeffe  
3ffff220:  feefeffe feefeffe feefeffe feefeffe  
3ffff230:  feefeffe feefeffe feefeffe feefeffe  
3ffff240:  feefeffe feefeffe feefeffe feefeffe  
3ffff250:  feefeffe feefeffe feefeffe feefeffe  
3ffff260:  feefeffe feefeffe feefeffe feefeffe  
3ffff270:  feefeffe feefeffe feefeffe feefeffe  
3ffff280:  feefeffe feefeffe feefeffe feefeffe  
3ffff290:  feefeffe feefeffe feefeffe feefeffe  
3ffff2a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff2f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff300:  feefeffe feefeffe feefeffe feefeffe  
3ffff310:  feefeffe feefeffe feefeffe feefeffe  
3ffff320:  feefeffe feefeffe feefeffe feefeffe  
3ffff330:  feefeffe feefeffe feefeffe feefeffe  
3ffff340:  feefeffe feefeffe feefeffe feefeffe  
3ffff350:  feefeffe feefeffe feefeffe feefeffe  
3ffff360:  feefeffe feefeffe feefeffe feefeffe  
3ffff370:  feefeffe feefeffe feefeffe feefeffe  
3ffff380:  feefeffe feefeffe feefeffe feefeffe  
3ffff390:  feefeffe feefeffe feefeffe feefeffe  
3ffff3a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff3f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff400:  feefeffe feefeffe feefeffe feefeffe  
3ffff410:  feefeffe feefeffe feefeffe feefeffe  
3ffff420:  feefeffe feefeffe feefeffe feefeffe  
3ffff430:  feefeffe feefeffe feefeffe feefeffe  
3ffff440:  feefeffe feefeffe feefeffe feefeffe  
3ffff450:  feefeffe feefeffe feefeffe feefeffe  
3ffff460:  feefeffe feefeffe feefeffe feefeffe  
3ffff470:  feefeffe feefeffe feefeffe feefeffe  
3ffff480:  feefeffe feefeffe feefeffe feefeffe  
3ffff490:  feefeffe feefeffe feefeffe feefeffe  
3ffff4a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff4f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff500:  feefeffe feefeffe feefeffe feefeffe  
3ffff510:  feefeffe feefeffe feefeffe feefeffe  
3ffff520:  feefeffe feefeffe feefeffe feefeffe  
3ffff530:  feefeffe feefeffe feefeffe feefeffe  
3ffff540:  feefeffe feefeffe feefeffe feefeffe  
3ffff550:  feefeffe feefeffe feefeffe feefeffe  
3ffff560:  feefeffe feefeffe feefeffe feefeffe  
3ffff570:  feefeffe feefeffe feefeffe feefeffe  
3ffff580:  feefeffe feefeffe feefeffe feefeffe  
3ffff590:  feefeffe feefeffe feefeffe feefeffe  
3ffff5a0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5b0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5c0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5d0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5e0:  feefeffe feefeffe feefeffe feefeffe  
3ffff5f0:  feefeffe feefeffe feefeffe feefeffe  
3ffff600:  feefeffe feefeffe feefeffe feefeffe  
3ffff610:  feefeffe feefeffe feefeffe feefeffe  
3ffff620:  feefeffe feefeffe feefeffe feefeffe  
3ffff630:  feefeffe feefeffe feefeffe feefeffe  
3ffff640:  feefeffe feefeffe feefeffe feefeffe  
3ffff650:  feefeffe feefeffe feefeffe feefeffe  
3ffff660:  feefeffe feefeffe feefeffe feefeffe  
3ffff670:  feefeffe feefeffe 4022c22b 00000001  
3ffff680:  ffffffff 00000000 3ffe8fc1 00000008  
3ffff690:  4022c27a 3ffec5e0 3ffef0cc 00000001  
3ffff6a0:  00000002 00000000 00000020 40100198  
3ffff6b0:  00000008 00000000 0000000a 00000000  
3ffff6c0:  00000008 00000000 0000000a 00000000  
3ffff6d0:  00000000 4021e8e7 3ffeda98 3ffef0cc  
3ffff6e0:  00000000 a0000000 00000000 0000001c  
3ffff6f0:  00008000 4010554b 00008000 00000000  
3ffff700:  3ffff860 00000000 3ffff860 4020e2f6  
3ffff710:  0000a000 3ffff803 3ffefc90 3ffeea30  
3ffff720:  feefeffe 00000032 4020a055 0000000c  
3ffff730:  3ffff860 0000000c 3ffff860 40100d19  
3ffff740:  3ffff7c0 00000003 00000174 40100dd5  
3ffff750:  00000ba0 3ffee9e8 3fff0504 4020e22c  
3ffff760:  00001a98 00000353 00000353 40100af3  
3ffff770:  40219fd4 00000000 3fff09cc 3ffeecb8  
3ffff780:  00000000 00000003 00000020 40100feb  
3ffff790:  3ffff803 00000001 00000014 3ffeecb8  
3ffff7a0:  00000000 00000003 3fff09d4 40101008  
3ffff7b0:  3fff0f84 00000001 ffffffff 40100558  
3ffff7c0:  00000000 0000000c 00000000 40219ff4  
3ffff7d0:  0000000c 00000120 fe302073 402103cd  
3ffff7e0:  3fff0f84 00000003 3fff09d4 40217ad0  
3ffff7f0:  00000002 00000000 3ffefaa8 feefeffe  
3ffff800:  00303831 feef58fe 00000000 3fff0f84  
3ffff810:  3fff0f84 3ffefaa8 3ffeee18 40217bf4  
3ffff820:  3fff0000 3ffff920 00000030 3ffe8304  
3ffff830:  3fff0fd4 3ffefaa8 3ffeee18 402194dc  
3ffff840:  4023ed20 000000b6 0000002c 3fffff30  
3ffff850:  00000014 3ffeee1c 000000ff 00000000  
3ffff860:  00000011 3ffeeda0 00000409 40100dd5  
3ffff870:  00000011 00000001 00000000 3fff0f84  
3ffff880:  3ffefaa8 3fff0f84 3ffefaa4 40219572  
3ffff890:  3ffeee18 00000000 00000000 4021a0e3  
3ffff8a0:  40100c04 00000000 3fff05cc 40214594  
3ffff8b0:  3ffeee18 00000000 00000020 40100feb  
3ffff8c0:  00001a38 00000347 00000347 40100af3  
3ffff8d0:  00000000 00000000 3fff096c 3fffff30  
3ffff8e0:  3ffffaf8 40202064 00000020 40100feb  
3ffff8f0:  3fff0982 00000000 3ffff92c 3fffff30  
3ffff900:  3ffffaf8 40202064 3ffffaec 40101008  
3ffff910:  00000000 3fff0f84 00000000 40100558  
3ffff920:  00000020 38413a43 3ffffaec 40205081  
3ffff930:  000000a8 00000000 3ffee7a4 402050a0  
3ffff940:  3ffffaf8 40202064 3ffee7a4 40203786  
3ffff950:  0000002f 00000050 3fff0974 3fff0974  
3ffff960:  50545448 312e312f 30303220 0d4b4f20  
3ffff970:  5458450a 430a0d3a 45484341 4e4f432d  
3ffff980:  4c4f5254 616d203a 67612d78 30313d65  
3ffff990:  4c0a0d30 5441434f 3a4e4f49 74746820  
3ffff9a0:  2f2f3a70 2e323931 2e383631 37342e30  
3ffff9b0:  2f30383a 63736564 74706972 2e6e6f69  
3ffff9c0:  0d6c6d78 5245530a 3a524556 65724620  
3ffff9d0:  4f545265 2e362f53 2c352e30 6e505520  
3ffff9e0:  2e312f50 49202c30 69724270 2f656764  
3ffff9f0:  37312e31 0a0d302e 2d657568 64697262  
3ffffa00:  64696567 3438203a 38616363 37306661  
3ffffa10:  0a0d3138 203a5453 3a6e7275 65686373  
3ffffa20:  2d73616d 706e7075 67726f2d 7665643a  
3ffffa30:  3a656369 69736162 0d313a63 4e53550a  
3ffffa40:  7575203a 323a6469 32303466 2d303866  
3ffffa50:  30356164 6531312d 62392d31 382d3332  
3ffffa60:  61636334 30666138 3a313837 6e70753a  
3ffffa70:  6f723a70 6564746f 65636976 0a0d0a0d  
3ffffa80:  feefef00 feefeffe 00000000 00000000  
3ffffa90:  00001ab0 00000356 00000356 40100af3  
3ffffaa0:  00000002 00000000 3fff09e4 3fffff30  
3ffffab0:  3fffff30 3ffee784 00000020 40100feb  
3ffffac0:  3ffffb20 402412ac 3ffe8304 3fffff30  
3ffffad0:  3fffff30 3ffee784 3fffff54 40101008  
3ffffae0:  0000000d 00000400 00000400 40100558  
3ffffaf0:  000c001f 8000000d 3fffff54 40205081  
3ffffb00:  402081a0 2f00a8c0 00000001 402050a0  
3ffffb10:  3fffff30 3ffee784 00000001 40203877  
3ffffb20:  45532d4d 48435241 48202a20 2f505454  
3ffffb30:  0d312e31 534f480a 32203a54 322e3933  
3ffffb40:  322e3535 322e3535 313a3035 0d303039  
3ffffb50:  3a54530a 6e707520 6f723a70 6564746f  
3ffffb60:  65636976 414d0a0d 22203a4e 70647373  
3ffffb70:  7369643a 65766f63 0a0d2272 203a584d  
3ffffb80:  0d0a0d33 0000000a 00000000 00000000  
3ffffb90:  00000000 00000000 00000000 00000000  
3ffffba0:  00000000 00000000 00000000 00000000  
3ffffbb0:  00000000 00000000 00000000 00000000  
3ffffbc0:  00000000 00000000 00000000 00000000  
3ffffbd0:  00000000 00000000 00000000 00000000  
3ffffbe0:  00000000 00000000 00000000 00000000  
3ffffbf0:  00000000 00000000 00000000 00000000  
3ffffc00:  00000000 00000000 00000000 00000000  
3ffffc10:  00000000 00000000 00000000 00000000  
3ffffc20:  00000000 00000000 00000000 00000000  
3ffffc30:  00000000 00000000 00000000 00000000  
3ffffc40:  00000000 00000000 00000000 00000000  
3ffffc50:  00000000 00000000 00000000 00000000  
3ffffc60:  00000000 00000000 00000000 00000000  
3ffffc70:  00000000 00000000 00000000 00000000  
3ffffc80:  00000000 00000000 00000000 00000000  
3ffffc90:  00000000 00000000 00000000 00000000  
3ffffca0:  00000000 00000000 00000000 00000000  
3ffffcb0:  00000000 00000000 00000000 00000000  
3ffffcc0:  00000000 00000000 00000000 00000000  
3ffffcd0:  00000000 00000000 00000000 00000000  
3ffffce0:  00000000 00000000 00000000 00000000  
3ffffcf0:  00000000 00000000 00000000 00000000  
3ffffd00:  00000000 00000000 00000000 00000000  
3ffffd10:  00000000 00000000 00000000 00000000  
3ffffd20:  00000000 00000000 00000000 00000000  
3ffffd30:  00000000 00000000 00000000 00000000  
3ffffd40:  00000000 00000000 00000000 00000000  
3ffffd50:  00000000 00000000 00000000 00000000  
3ffffd60:  00000000 00000000 00000020 40100198  
3ffffd70:  00000002 00000000 00000000 40101c50  
3ffffd80:  3ffe8e70 40104ee3 3ffec720 000000fe  
3ffffd90:  00000001 401040be 3ffecff0 3ffed038  
3ffffda0:  4010452f 00000001 40104e49 3ffed038  
3ffffdb0:  00000000 00000000 00000020 40100198  
3ffffdc0:  00000002 00000000 00000000 40101c50  
3ffffdd0:  00000005 00000000 00000020 40100198  
3ffffde0:  00000001 401040be 00000005 40101c50  
3ffffdf0:  3ffe8e75 40104efb 3ffec8d8 401029c4  
3ffffe00:  401027e7 3ffec8d8 00000000 3fffc278  
3ffffe10:  00007fff 00e764b3 3ffed348 401029c4  
3ffffe20:  3ffe972c 00000000 00000000 00040000  
3ffffe30:  00007fff 00e764b3 40102e86 00000100  
3ffffe40:  3ffe972c 7fffffff 00000000 00000001  
3ffffe50:  00000001 00004288 4000050c 3fffc278  
3ffffe60:  3ffe972c 3fffc200 00000022 00e764b3  
3ffffe70:  3ffe96f0 2c9f0300 4000050c 3fffc278  
3ffffe80:  40102ba8 3fffc200 00000022 4bc6a7f0  
3ffffe90:  4010018f 00000030 00000010 ffffffff  
3ffffea0:  401001b9 00000001 00000000 00000000  
3ffffeb0:  00004bc6 00000000 00000000 fffffffe  
3ffffec0:  00000000 3fffc6fc 00000000 3ffee920  
3ffffed0:  00000000 3fffdad0 3ffee960 00000030  
3ffffee0:  00000000 00000000 00000000 fffffffe  
3ffffef0:  ffffffff 3fffc6fc 00000064 3ffe84f4  
3fffff00:  00000000 3fffdad0 3ffee960 00000030  
3fffff10:  00000000 3ffee7a4 00000000 40202760  
3fffff20:  76696c00 3ffee784 3ffee920 402037cc  
3fffff30:  00000000 4bc6a7f0 f16872b0 00000000  
3fffff40:  00000000 00000000 4bc6a7f0 00000000  
3fffff50:  80ffdad0 3fff0900 40100290 00003b3e  
3fffff60:  007a1200 48525751 3ffee700 4020123a  
3fffff70:  00000000 00000000 3fffff50 3ffee960  
3fffff80:  00000000 00000000 00000001 40100198  
3fffff90:  3fffdad0 00000000 3ffee920 401001b9  
3fffffa0:  feefeffe 00000000 3ffee920 40206085  
<<<stack<<<

--------------- CUT HERE FOR EXCEPTION DECODER ---------------

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

load 0x4010f000, len 3584, room 16 
tail 0
chksum 0xb0
csum 0xb0
v2843a5ac
~ld

I don't konw, what's wrong - could you please help me out where I could start?

Best Regards, samtrot

samtrot commented 3 years ago

Here is my sketch, if this helps:

#include <Arduino.h>
#ifdef ESP32
#include <WiFi.h>
#else
#include <ESP8266WiFi.h>
#endif
#include <fauxmoESP.h>

#include "credentials.h"

fauxmoESP fauxmo;

// -----------------------------------------------------------------------------

#define SERIAL_BAUDRATE     115200

void wifiSetup() {
  WiFi.mode(WIFI_STA);

  Serial.printf("[WIFI] Connecting to %s ", WIFI_SSID);
  WiFi.begin(WIFI_SSID, WIFI_PASS);

  while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    delay(100);
  }
  Serial.println();

  Serial.printf("[WIFI] STATION Mode, SSID: %s, IP address: %s\n", WiFi.SSID().c_str(), WiFi.localIP().toString().c_str());
}

void setup() {
  Serial.begin(SERIAL_BAUDRATE);
  Serial.println();
  Serial.println();

  pinMode(LED_BUILTIN, OUTPUT);
  digitalWrite(LED_BUILTIN, LEDSwitch);

  wifiSetup();

  fauxmo.createServer(true); // not needed, this is the default value
  fauxmo.setPort(80); // This is required for gen3 devices

  fauxmo.enable(true);

  fauxmo.addDevice("blue Lamp");

  fauxmo.onSetState([](unsigned char device_id, const char * device_name, bool state, unsigned char value) {
    Serial.printf("[MAIN] Device #%d (%s) state: %s value: %d\n", device_id, device_name, state ? "ON" : "OFF", value);

    if (strcmp(device_name, "blue Lamp") == 0) {
      digitalWrite(LED_BUILTIN, state ? HIGH : LOW);
    }
  });
}

void loop() {
  fauxmo.handle();

  static unsigned long last = millis();
  if (millis() - last > 5000) {
    last = millis();
    Serial.printf("[MAIN] Free heap: %d bytes\n", ESP.getFreeHeap());
  }
}
pvint commented 3 years ago

Someone else had a similar issue recently - try setting lwIP Variant to v1.4 Higher Bandwidth (Ref: https://github.com/vintlabs/fauxmoESP/issues/120#issuecomment-742090628)

If that doesn't do it, open the "ESP Exception Decoder" in tools menu, paste the exception info in and post the output from there.

samtrot commented 3 years ago

Thank you very much - this did the trick for me, too. I'd have never searched for LwIP.

pvint commented 3 years ago

Excellent! I still need to check into this more... I can use v2 without problem, but others have had issues as well. Thanks for the feedback