Coder Social home page Coder Social logo

krzmaz / linakdeskesp32controller Goto Github PK

View Code? Open in Web Editor NEW
32.0 5.0 2.0 87 KB

Standalone ESP32 controller for Linak standing desks (e.g. Ikea Idasen) with HTTP API and Alexa integration

License: MIT License

C++ 97.52% Python 2.48%
esp32 esp32-arduino linak idasen

linakdeskesp32controller's Introduction

Hi there ๐Ÿ‘‹

I'm Krzysiek (or Chris for the ~99.5% of people that cannot speak polish ๐Ÿ˜)
I'm adding here all the projects that I create and I think can be useful to people.

  • ๐ŸŒฑ Iโ€™m currently learning Rust ๐Ÿฆ€
  • ๐Ÿ”ญ Iโ€™m currently working on various small IoT trinkets using ESP32 and Raspberry Pi Pico W.

linakdeskesp32controller's People

Contributors

krzmaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

linakdeskesp32controller's Issues

ESP reboots randomley and sometimes after receiving target height.

My esp reboots randomly and sometimes after receiving the traget height, which causes the table movement to stop.

I tried this with a wemos-d1-mini-esp32 and an esp-dev-kit, they are booth affected by the reboots.

Log from esphome-flasher:


Using 'COM15' as serial port.
Showing logs:
[15:12:43]Name:
[15:12:43]Desk 7693
[15:12:43]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:12:43]Data: 01 03 01 6A 18 
[15:12:44]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:12:44]Data: 01 07 01 00 00 3A 82 A3 57 
[15:12:44]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:12:44]Data: 01 07 01 00 00 3B 82 A3 57 
[15:12:45]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:12:45]Data: 01 07 01 00 00 46 82 A3 57 
[15:12:45]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:12:45]Data: 01 11 01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 
[15:12:45]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:12:45]Data: 01 00 
[15:12:46]connected
[15:12:46]Current height: 775 mm
[15:12:46]Getting height and printing it took: 150ms
[15:12:46]After waiting 0.00 secs , WiFi connection result is 3
[15:12:46]Local IP: 10.25.30.161
[15:12:46]HTTP server started
[15:12:49]Control response:
[15:12:49]Notify callback for HeightSpeed: Height: 1504 Speed: 0
[15:12:50]
[15:12:50]Control response:
[15:12:50]
[15:12:50]Input response:
[15:12:50]Notify callback for HeightSpeed: Height: 1506 Speed: 704
[15:12:50]Notify callback for HeightSpeed: Height: 1508 Speed: 992
[15:12:50]
[15:12:50]Notify callback for HeightSpeed: Height: 1512 Speed: 1280
[15:12:50]Notify callback for HeightSpeed: Height: 1516 Speed: 1568
[15:12:50]Notify callback for HeightSpeed: Height: 1521 Speed: 1856
[15:12:50]Notify callback for HeightSpeed: Height: 1527 Speed: 2144
[15:12:50]Notify callback for HeightSpeed: Height: 1534 Speed: 2432
[15:12:51]Notify callback for HeightSpeed: Height: 1542 Speed: 2720
[15:12:51]Input response:
[15:12:51]Notify callback for HeightSpeed: Height: 1551 Speed: 3008
[15:12:51]Notify callback for HeightSpeed: Height: 1561 Speed: 3296
[15:12:51]Notify callback for HeightSpeed: Height: 1571 Speed: 3328
[15:12:51]Notify callback for HeightSpeed: Height: 1581 Speed: 3424
[15:12:51]
[15:12:51]Notify callback for HeightSpeed: Height: 1591 Speed: 3344
[15:12:51]Notify callback for HeightSpeed: Height: 1602 Speed: 3392
[15:12:51]Notify callback for HeightSpeed: Height: 1612 Speed: 3248
[15:12:51]Notify callback for HeightSpeed: Height: 1622 Speed: 3280
[15:12:51]Notify callback for HeightSpeed: Height: 1632 Speed: 3360
[15:12:51]Notify callback for HeightSpeed: Height: 1643 Speed: 3440
[15:12:51]Notify callback for HeightSpeed: Height: 1653 Speed: 3392
[15:12:51]Notify callback for HeightSpeed: Height: 1664 Speed: 3536
[15:12:51]Input response:
[15:12:51]Notify callback for HeightSpeed: Height: 1674 Speed: 3488
[15:12:51]Notify callback for HeightSpeed: Height: 1685 Speed: 3536
[15:12:51]
[15:12:51]Notify callback for HeightSpeed: Height: 1696 Speed: 3632
[15:12:51]Notify callback for HeightSpeed: Height: 1707 Speed: 3488
[15:12:51]Notify callback for HeightSpeed: Height: 1719 Speed: 3856
[15:12:51]Notify callback for HeightSpeed: Height: 1730 Speed: 3808
[15:12:52]Notify callback for HeightSpeed: Height: 1742 Speed: 3712
[15:12:52]Notify callback for HeightSpeed: Height: 1754 Speed: 3696
[15:12:52]Input response:
[15:12:52]Notify callback for HeightSpeed: Height: 1766 Speed: 3952
[15:12:52]Notify callback for HeightSpeed: Height: 1778 Speed: 3984
[15:12:52]
[15:12:52]Notify callback for HeightSpeed: Height: 1790 Speed: 3808
[15:12:52]Notify callback for HeightSpeed: Height: 1802 Speed: 3904
[15:12:52]Notify callback for HeightSpeed: Height: 1814 Speed: 3808
[15:12:52]Notify callback for HeightSpeed: Height: 1826 Speed: 3920
[15:12:52]Notify callback for HeightSpeed: Height: 1838 Speed: 3776
[15:12:52]Notify callback for HeightSpeed: Height: 1849 Speed: 3792
[15:12:52]Input response:
[15:12:52]Notify callback for HeightSpeed: Height: 1861 Speed: 3936
[15:12:52]Notify callback for HeightSpeed: Height: 1873 Speed: 3888
[15:12:52]
[15:12:52]Notify callback for HeightSpeed: Height: 1885 Speed: 3936
[15:12:52]Notify callback for HeightSpeed: Height: 1897 Speed: 3952
[15:12:52]Notify callback for HeightSpeed: Height: 1909 Speed: 3872
[15:12:52]Notify callback for HeightSpeed: Height: 1921 Speed: 3952
[15:12:52]Notify callback for HeightSpeed: Height: 1933 Speed: 3904
[15:12:52]Input response:Notify callback for HeightSpeed: Height: 1944 Speed: 3904
[15:12:52]
[15:12:52]Notify callback for HeightSpeed: Height: 1956 Speed: 3840
[15:12:53]Notify callback for HeightSpeed: Height: 1968 Speed: 4032
[15:12:53]Notify callback for HeightSpeed: Height: 1981 Speed: 4048
[15:12:53]Notify callback for HeightSpeed: Height: 1993 Speed: 4080
[15:12:53]Notify callback for HeightSpeed: Height: 2005 Speed: 3856
[15:12:53]Notify callback for HeightSpeed: Height: 2018 Speed: 4032
[15:12:53]
[15:12:53]Notify callback for HeightSpeed: Height: 2030 Speed: 4032
[15:12:53]Notify callback for HeightSpeed: Height: 2042 Speed: 4128
[15:12:53]Notify callback for HeightSpeed: Height: 2055 Speed: 4016
[15:12:53]Notify callback for HeightSpeed: Height: 2068 Speed: 4112
[15:12:53]Notify callback for HeightSpeed: Height: 2080 Speed: 4032
[15:12:53]Notify callback for HeightSpeed: Height: 2092 Speed: 4016
[15:12:53]Notify callback for HeightSpeed: Height: 2104 Speed: 3776
[15:12:53]Input response:
[15:12:53]Notify callback for HeightSpeed: Height: 2116 Speed: 3968
[15:12:53]Notify callback for HeightSpeed: Height: 2128 Speed: 3968
[15:12:53]
[15:12:53]Notify callback for HeightSpeed: Height: 2140 Speed: 3920
[15:12:53]Notify callback for HeightSpeed: Height: 2152 Speed: 3888
[15:12:53]Notify callback for HeightSpeed: Height: 2163 Speed: 3872
[15:12:53]Notify callback for HeightSpeed: Height: 2175 Speed: 3904
[15:12:53]Notify callback for HeightSpeed: Height: 2187 Speed: 3936
[15:12:53]Notify callback for HeightSpeed: Height: 2199 Speed: 4000
[15:12:53]Input response:
[15:12:53]Notify callback for HeightSpeed: Height: 2211 Speed: 4064
[15:12:53]Notify callback for HeightSpeed: Height: 2224 Speed: 4096
[15:12:53]
[15:12:54]Notify callback for HeightSpeed: Height: 2236 Speed: 4032
[15:12:54]Notify callback for HeightSpeed: Height: 2249 Speed: 4096
[15:12:54]Notify callback for HeightSpeed: Height: 2261 Speed: 4192
[15:12:54]Notify callback for HeightSpeed: Height: 2274 Speed: 4224
[15:12:54]Notify callback for HeightSpeed: Height: 2287 Speed: 4208
[15:12:54]Notify callback for HeightSpeed: Height: 2299 Speed: 4080
[15:12:54]Input response:
[15:12:54]Notify callback for HeightSpeed: Height: 2312 Speed: 4224
[15:12:54]Notify callback for HeightSpeed: Height: 2325 Speed: 3968
[15:12:54]
[15:12:54]Notify callback for HeightSpeed: Height: 2337 Speed: 4096
[15:12:54]Notify callback for HeightSpeed: Height: 2350 Speed: 4096
[15:12:54]Notify callback for HeightSpeed: Height: 2362 Speed: 4064
[15:12:54]Notify callback for HeightSpeed: Height: 2374 Speed: 3904
[15:12:54]Notify callback for HeightSpeed: Height: 2386 Speed: 3936
[15:12:54]Notify callback for HeightSpeed: Height: 2398 Speed: 4048
[15:12:54]Input response:
[15:12:54]Notify callback for HeightSpeed: Height: 2411 Speed: 4032
[15:12:54]Notify callback for HeightSpeed: Height: 2423 Speed: 3872
[15:12:54]
[15:12:54]Notify callback for HeightSpeed: Height: 2435 Speed: 4080
[15:12:54]Notify callback for HeightSpeed: Height: 2447 Speed: 3968
[15:12:54]Notify callback for HeightSpeed: Height: 2460 Speed: 4064
[15:12:55]Notify callback for HeightSpeed: Height: 2472 Speed: 4096
[15:12:55]Notify callback for HeightSpeed: Height: 2484 Speed: 4096
[15:12:55]Notify callback for HeightSpeed: Height: 2497 Speed: 4112
[15:12:55]Notify callback for HeightSpeed: Height: 2509 Speed: 4128
[15:12:55]Notify callback for HeightSpeed: Height: 2522 Speed: 4064
[15:12:55]Input response:Notify callback for HeightSpeed: Height: 2534 Speed: 4080
[15:12:55]
[15:12:55]Notify callback for HeightSpeed: Height: 2546 Speed: 4000
[15:12:55]Notify callback for HeightSpeed: Height: 2558 Speed: 4000
[15:12:55]
[15:12:55]Notify callback for HeightSpeed: Height: 2571 Speed: 4128
[15:12:55]Notify callback for HeightSpeed: Height: 2583 Speed: 4128
[15:12:55]Notify callback for HeightSpeed: Height: 2596 Speed: 4208
[15:12:55]Notify callback for HeightSpeed: Height: 2609 Speed: 4176
[15:12:55]Notify callback for HeightSpeed: Height: 2621 Speed: 4000
[15:12:55]Notify callback for HeightSpeed: Height: 2634 Speed: 3920
[15:12:55]Input response:
[15:12:55]Notify callback for HeightSpeed: Height: 2644 Speed: 4240
[15:12:55]Notify callback for HeightSpeed: Height: 2657 Speed: 4272
[15:12:55]
[15:12:55]Notify callback for HeightSpeed: Height: 2670 Speed: 4192
[15:12:55]Notify callback for HeightSpeed: Height: 2683 Speed: 4176
[15:12:55]Notify callback for HeightSpeed: Height: 2696 Speed: 4080
[15:12:55]Notify callback for HeightSpeed: Height: 2708 Speed: 4224
[15:12:56]Notify callback for HeightSpeed: Height: 2721 Speed: 4256
[15:12:56]Notify callback for HeightSpeed: Height: 2734 Speed: 4208
[15:12:56]Notify callback for HeightSpeed: Height: 2746 Speed: 4176
[15:12:56]Notify callback for HeightSpeed: Height: 2759 Speed: 4000
[15:12:56]Input response:
[15:12:56]Notify callback for HeightSpeed: Height: 2771 Speed: 4032
[15:12:56]Notify callback for HeightSpeed: Height: 2784 Speed: 4128
[15:12:56]
[15:12:56]Notify callback for HeightSpeed: Height: 2797 Speed: 4144
[15:12:56]Notify callback for HeightSpeed: Height: 2809 Speed: 4112
[15:12:56]Notify callback for HeightSpeed: Height: 2822 Speed: 4208
[15:12:56]Notify callback for HeightSpeed: Height: 2834 Speed: 4272
[15:12:56]Notify callback for HeightSpeed: Height: 2847 Speed: 4304
[15:12:56]Notify callback for HeightSpeed: Height: 2860 Speed: 4336
[15:12:56]Input response:
[15:12:56]Notify callback for HeightSpeed: Height: 2873 Speed: 4352
[15:12:56]Notify callback for HeightSpeed: Height: 2887 Speed: 4336
[15:12:56]
[15:12:56]Notify callback for HeightSpeed: Height: 2900 Speed: 4352
[15:12:56]Notify callback for HeightSpeed: Height: 2913 Speed: 4368
[15:12:56]Notify callback for HeightSpeed: Height: 2926 Speed: 4384
[15:12:56]Notify callback for HeightSpeed: Height: 2939 Speed: 4336
[15:12:56]Notify callback for HeightSpeed: Height: 2952 Speed: 4160
[15:12:56]Notify callback for HeightSpeed: Height: 2965 Speed: 4288
[15:12:56]Input response:
[15:12:56]Notify callback for HeightSpeed: Height: 2978 Speed: 4192
[15:12:57]
[15:12:57]Notify callback for HeightSpeed: Height: 2991 Speed: 4064
[15:12:57]Notify callback for HeightSpeed: Height: 3004 Speed: 4064
[15:12:57]Notify callback for HeightSpeed: Height: 3017 Speed: 4240
[15:12:57]Notify callback for HeightSpeed: Height: 3030 Speed: 4224
[15:12:57]Notify callback for HeightSpeed: Height: 3043 Speed: 4256
[15:12:57]Notify callback for HeightSpeed: Height: 3056 Speed: 4160
[15:12:57]Notify callback for HeightSpeed: Height: 3069 Speed: 4352
[15:12:57]Notify callback for HeightSpeed: Height: 3082 Speed: 4096
[15:12:57]Input response:
[15:12:57]Notify callback for HeightSpeed: Height: 3095 Speed: 4304
[15:12:57]Notify callback for HeightSpeed: Height: 3108 Speed: 4304
[15:12:57]
[15:12:57]Notify callback for HeightSpeed: Height: 3120 Speed: 4304
[15:12:57]Notify callback for HeightSpeed: Height: 3133 Speed: 4128
[15:12:57]Notify callback for HeightSpeed: Height: 3146 Speed: 4224
[15:12:57]Notify callback for HeightSpeed: Height: 3159 Speed: 4000
[15:12:57]Notify callback for HeightSpeed: Height: 3171 Speed: 4208
[15:12:57]Notify callback for HeightSpeed: Height: 3184 Speed: 4080
[15:12:57]Input response:
[15:12:57]Notify callback for HeightSpeed: Height: 3197 Speed: 4192
[15:12:57]Notify callback for HeightSpeed: Height: 3210 Speed: 4272
[15:12:57]
[15:12:57]Notify callback for HeightSpeed: Height: 3223 Speed: 4320
[15:12:57]Notify callback for HeightSpeed: Height: 3236 Speed: 4416
[15:12:58]Notify callback for HeightSpeed: Height: 3249 Speed: 4464
[15:12:58]Notify callback for HeightSpeed: Height: 3263 Speed: 4480
[15:12:58]Notify callback for HeightSpeed: Height: 3277 Speed: 4480
[15:12:58]Notify callback for HeightSpeed: Height: 3290 Speed: 4464
[15:12:58]Input response:
[15:12:58]Notify callback for HeightSpeed: Height: 3304 Speed: 4512
[15:12:58]Notify callback for HeightSpeed: Height: 3318 Speed: 4560
[15:12:58]
[15:12:58]Notify callback for HeightSpeed: Height: 3331 Speed: 4416
[15:12:58]Notify callback for HeightSpeed: Height: 3345 Speed: 4512
[15:12:58]Notify callback for HeightSpeed: Height: 3359 Speed: 4224
[15:12:58]Notify callback for HeightSpeed: Height: 3372 Speed: 4368
[15:12:58]Notify callback for HeightSpeed: Height: 3386 Speed: 4496
[15:12:58]Notify callback for HeightSpeed: Height: 3399 Speed: 4432
[15:12:58]Input response:
[15:12:58]Notify callback for HeightSpeed: Height: 3413 Speed: 4304
[15:12:58]Notify callback for HeightSpeed: Height: 3426 Speed: 4480
[15:12:58]
[15:12:58]Notify callback for HeightSpeed: Height: 3440 Speed: 4336
[15:12:58]Notify callback for HeightSpeed: Height: 3454 Speed: 4384
[15:12:58]Notify callback for HeightSpeed: Height: 3467 Speed: 4352
[15:12:58]Notify callback for HeightSpeed: Height: 3481 Speed: 4416
[15:12:58]Notify callback for HeightSpeed: Height: 3494 Speed: 4256
[15:12:58]Notify callback for HeightSpeed: Height: 3508 Speed: 4400
[15:12:58]Input response:
[15:12:58]Notify callback for HeightSpeed: Height: 3521 Speed: 4272
[15:12:59]
[15:12:59]Notify callback for HeightSpeed: Height: 3534 Speed: 4368
[15:12:59]Notify callback for HeightSpeed: Height: 3547 Speed: 4144
[15:12:59]Notify callback for HeightSpeed: Height: 3561 Speed: 4304
[15:12:59]Notify callback for HeightSpeed: Height: 3574 Speed: 4288
[15:12:59]Notify callback for HeightSpeed: Height: 3587 Speed: 4384
[15:12:59]Notify callback for HeightSpeed: Height: 3600 Speed: 4304
[15:12:59]Notify callback for HeightSpeed: Height: 3613 Speed: 4240
[15:12:59]Notify callback for HeightSpeed: Height: 3626 Speed: 4320
[15:12:59]Input response:
[15:12:59]Notify callback for HeightSpeed: Height: 3639 Speed: 4192
[15:12:59]Notify callback for HeightSpeed: Height: 3652 Speed: 4272
[15:12:59]
[15:12:59]Notify callback for HeightSpeed: Height: 3665 Speed: 4368
[15:12:59]Notify callback for HeightSpeed: Height: 3678 Speed: 4336
[15:12:59]Notify callback for HeightSpeed: Height: 3692 Speed: 4320
[15:12:59]Notify callback for HeightSpeed: Height: 3705 Speed: 4352
[15:12:59]Notify callback for HeightSpeed: Height: 3718 Speed: 4400
[15:12:59]Notify callback for HeightSpeed: Height: 3731 Speed: 4352
[15:12:59]Input response:
[15:12:59]Notify callback for HeightSpeed: Height: 3744 Speed: 4416
[15:12:59]Notify callback for HeightSpeed: Height: 3758 Speed: 4272
[15:12:59]
[15:12:59]Notify callback for HeightSpeed: Height: 3771 Speed: 4336
[15:13:00]Notify callback for HeightSpeed: Height: 3785 Speed: 4528
[15:13:00]Notify callback for HeightSpeed: Height: 3799 Speed: 4480
[15:13:00]Notify callback for HeightSpeed: Height: 3812 Speed: 4352
[15:13:00]Notify callback for HeightSpeed: Height: 3826 Speed: 4256
[15:13:00]Notify callback for HeightSpeed: Height: 3839 Speed: 4416
[15:13:00]Input response:
[15:13:00]Notify callback for HeightSpeed: Height: 3853 Speed: 4496
[15:13:00]Notify callback for HeightSpeed: Height: 3867 Speed: 4416
[15:13:00]
[15:13:00]Notify callback for HeightSpeed: Height: 3880 Speed: 4240
[15:13:00]Notify callback for HeightSpeed: Height: 3894 Speed: 4192
[15:13:00]Notify callback for HeightSpeed: Height: 3907 Speed: 4384
[15:13:00]Notify callback for HeightSpeed: Height: 3920 Speed: 4384
[15:13:00]Notify callback for HeightSpeed: Height: 3933 Speed: 4288
[15:13:00]Notify callback for HeightSpeed: Height: 3946 Speed: 4288
[15:13:00]Input response:
[15:13:00]Notify callback for HeightSpeed: Height: 3959 Speed: 4160
[15:13:00]Notify callback for HeightSpeed: Height: 3972 Speed: 4224
[15:13:00]
[15:13:00]Notify callback for HeightSpeed: Height: 3985 Speed: 4112
[15:13:00]Notify callback for HeightSpeed: Height: 3998 Speed: 4304
[15:13:00]Notify callback for HeightSpeed: Height: 4011 Speed: 4256
[15:13:00]Notify callback for HeightSpeed: Height: 4024 Speed: 4416
[15:13:01]Notify callback for HeightSpeed: Height: 4038 Speed: 4464
[15:13:01]Notify callback for HeightSpeed: Height: 4051 Speed: 4368
[15:13:01]Input response:
[15:13:01]Notify callback for HeightSpeed: Height: 4065 Speed: 4448
[15:13:01]Notify callback for HeightSpeed: Height: 4078 Speed: 4400
[15:13:01]
[15:13:01]Notify callback for HeightSpeed: Height: 4092 Speed: 4496
[15:13:01]Notify callback for HeightSpeed: Height: 4106 Speed: 4384
[15:13:01]Notify callback for HeightSpeed: Height: 4120 Speed: 4576
[15:13:01]Notify callback for HeightSpeed: Height: 4134 Speed: 4560
[15:13:01]Notify callback for HeightSpeed: Height: 4147 Speed: 4400
[15:13:01]Input response:
[15:13:01]Notify callback for HeightSpeed: Height: 4160 Speed: 4192
[15:13:01]Notify callback for HeightSpeed: Height: 4173 Speed: 4304
[15:13:01]Notify callback for HeightSpeed: Height: 4186 Speed: 4160
[15:13:01]Notify callback for HeightSpeed: Height: 4199 Speed: 4080
[15:13:01]
[15:13:01]Notify callback for HeightSpeed: Height: 4212 Speed: 4064
[15:13:01]Notify callback for HeightSpeed: Height: 4225 Speed: 4208
[15:13:01]Notify callback for HeightSpeed: Height: 4237 Speed: 4256
[15:13:01]Notify callback for HeightSpeed: Height: 4250 Speed: 4128
[15:13:01]Notify callback for HeightSpeed: Height: 4263 Speed: 4304
[15:13:02]Notify callback for HeightSpeed: Height: 4277 Speed: 4240
[15:13:02]Notify callback for HeightSpeed: Height: 4290 Speed: 4400
[15:13:02]Notify callback for HeightSpeed: Height: 4304 Speed: 4544
[15:13:02]Input response:
[15:13:02]Notify callback for HeightSpeed: Height: 4318 Speed: 4576
[15:13:02]Notify callback for HeightSpeed: Height: 4345 Speed: 4352
[15:13:02]Notify callback for HeightSpeed: Height: 4359 Speed: 4464
[15:13:02]
[15:13:02]Notify callback for HeightSpeed: Height: 4372 Speed: 4432
[15:13:02]Notify callback for HeightSpeed: Height: 4386 Speed: 4480
[15:13:02]Notify callback for HeightSpeed: Height: 4400 Speed: 4320
[15:13:02]Notify callback for HeightSpeed: Height: 4413 Speed: 4336
[15:13:02]Notify callback for HeightSpeed: Height: 4426 Speed: 4320
[15:13:02]Notify callback for HeightSpeed: Height: 4439 Speed: 4320
[15:13:02]Input response:
[15:13:02]Notify callback for HeightSpeed: Height: 4452 Speed: 4352
[15:13:02]Notify callback for HeightSpeed: Height: 4465 Speed: 4352
[15:13:02]
[15:13:02]Notify callback for HeightSpeed: Height: 4478 Speed: 4272
[15:13:02]Notify callback for HeightSpeed: Height: 4491 Speed: 4336
[15:13:02]Notify callback for HeightSpeed: Height: 4505 Speed: 4400
[15:13:02]Notify callback for HeightSpeed: Height: 4518 Speed: 4432
[15:13:02]Notify callback for HeightSpeed: Height: 4531 Speed: 4224
[15:13:02]Notify callback for HeightSpeed: Height: 4544 Speed: 4368
[15:13:02]Input response:
[15:13:02]Notify callback for HeightSpeed: Height: 4558 Speed: 4272
[15:13:02]Notify callback for HeightSpeed: Height: 4571 Speed: 4368
[15:13:02]
[15:13:03]Notify callback for HeightSpeed: Height: 4584 Speed: 4432
[15:13:03]Notify callback for HeightSpeed: Height: 4597 Speed: 4400
[15:13:03]Notify callback for HeightSpeed: Height: 4611 Speed: 4192
[15:13:03]Notify callback for HeightSpeed: Height: 4624 Speed: 4256
[15:13:03]Notify callback for HeightSpeed: Height: 4637 Speed: 4432
[15:13:03]Notify callback for HeightSpeed: Height: 4651 Speed: 4448
[15:13:03]Input response:
[15:13:03]Notify callback for HeightSpeed: Height: 4664 Speed: 4384
[15:13:03]
[15:13:03]Notify callback for HeightSpeed: Height: 4677 Speed: 4384
[15:13:03]Notify callback for HeightSpeed: Height: 4691 Speed: 4384
[15:13:03]Notify callback for HeightSpeed: Height: 4704 Speed: 4400
[15:13:03]Notify callback for HeightSpeed: Height: 4717 Speed: 4352
[15:13:03]Notify callback for HeightSpeed: Height: 4730 Speed: 4336
[15:13:03]Notify callback for HeightSpeed: Height: 4743 Speed: 4288
[15:13:03]Notify callback for HeightSpeed: Height: 4756 Speed: 4128
[15:13:03]Notify callback for HeightSpeed: Height: 4769 Speed: 4240
[15:13:03]Input response:
[15:13:03]Notify callback for HeightSpeed: Height: 4782 Speed: 4304
[15:13:03]Notify callback for HeightSpeed: Height: 4795 Speed: 4288
[15:13:03]
[15:13:03]Notify callback for HeightSpeed: Height: 4808 Speed: 4288
[15:13:03]Notify callback for HeightSpeed: Height: 4821 Speed: 4384
[15:13:04]Notify callback for HeightSpeed: Height: 4834 Speed: 4448
[15:13:04]Notify callback for HeightSpeed: Height: 4848 Speed: 4416
[15:13:04]Notify callback for HeightSpeed: Height: 4862 Speed: 4384
[15:13:04]Notify callback for HeightSpeed: Height: 4875 Speed: 4528
[15:13:04]Input response:
[15:13:04]Notify callback for HeightSpeed: Height: 4889 Speed: 4560
[15:13:04]Notify callback for HeightSpeed: Height: 4903 Speed: 4592
[15:13:04]
[15:13:04]Notify callback for HeightSpeed: Height: 4917 Speed: 4656
[15:13:04]Notify callback for HeightSpeed: Height: 4931 Speed: 4576
[15:13:04]Notify callback for HeightSpeed: Height: 4944 Speed: 4240
[15:13:04]Notify callback for HeightSpeed: Height: 4958 Speed: 4432
[15:13:04]Notify callback for HeightSpeed: Height: 4971 Speed: 4352
[15:13:04]Notify callback for HeightSpeed: Height: 4984 Speed: 4464
[15:13:04]Input response:
[15:13:04]Notify callback for HeightSpeed: Height: 4998 Speed: 4368
[15:13:04]Notify callback for HeightSpeed: Height: 5011 Speed: 4288
[15:13:04]
[15:13:04]Notify callback for HeightSpeed: Height: 5024 Speed: 4320
[15:13:04]Notify callback for HeightSpeed: Height: 5037 Speed: 4224
[15:13:04]Notify callback for HeightSpeed: Height: 5050 Speed: 4416
[15:13:04]Notify callback for HeightSpeed: Height: 5064 Speed: 4384
[15:13:04]Notify callback for HeightSpeed: Height: 5077 Speed: 4320
[15:13:05]Notify callback for HeightSpeed: Height: 5090 Speed: 4320
[15:13:05]Notify callback for HeightSpeed: Height: 5103 Speed: 4256
[15:13:05]Notify callback for HeightSpeed: Height: 5116 Speed: 4352
[15:13:05]Notify callback for HeightSpeed: Height: 5129 Speed: 4304
[15:13:05]Input response:
[15:13:05]Notify callback for HeightSpeed: Height: 5142 Speed: 4272
[15:13:05]Notify callback for HeightSpeed: Height: 5155 Speed: 4256
[15:13:05]Notify callback for HeightSpeed: Height: 5168 Speed: 4208
[15:13:05]
[15:13:05]Notify callback for HeightSpeed: Height: 5181 Speed: 4224
[15:13:05]Notify callback for HeightSpeed: Height: 5193 Speed: 4160
[15:13:05]Notify callback for HeightSpeed: Height: 5206 Speed: 4192
[15:13:05]Notify callback for HeightSpeed: Height: 5219 Speed: 4320
[15:13:05]Notify callback for HeightSpeed: Height: 5232 Speed: 4144
[15:13:05]Input response:Notify callback for HeightSpeed: Height: 5246 Speed: 4400
[15:13:05]
[15:13:05]Notify callback for HeightSpeed: Height: 5259 Speed: 4304
[15:13:05]Notify callback for HeightSpeed: Height: 5272 Speed: 4384
[15:13:05]Notify callback for HeightSpeed: Height: 5285 Speed: 4176
[15:13:05]Notify callback for HeightSpeed: Height: 5299 Speed: 4368
[15:13:05]
[15:13:05]Notify callback for HeightSpeed: Height: 5312 Speed: 4384
[15:13:05]Notify callback for HeightSpeed: Height: 5326 Speed: 4336
[15:13:05]Notify callback for HeightSpeed: Height: 5339 Speed: 4352
[15:13:05]Notify callback for HeightSpeed: Height: 5352 Speed: 4256
[15:13:06]Notify callback for HeightSpeed: Height: 5365 Speed: 4224
[15:13:06]Notify callback for HeightSpeed: Height: 5378 Speed: 4224
[15:13:06]Input response:
[15:13:06]Notify callback for HeightSpeed: Height: 5390 Speed: 4096
[15:13:06]Notify callback for HeightSpeed: Height: 5403 Speed: 4096
[15:13:06]
[15:13:06]Notify callback for HeightSpeed: Height: 5415 Speed: 4096
[15:13:06]Notify callback for HeightSpeed: Height: 5428 Speed: 4128
[15:13:06]Notify callback for HeightSpeed: Height: 5440 Speed: 4160
[15:13:06]Notify callback for HeightSpeed: Height: 5453 Speed: 4192
[15:13:06]Notify callback for HeightSpeed: Height: 5466 Speed: 4304
[15:13:06]Notify callback for HeightSpeed: Height: 5479 Speed: 4304
[15:13:06]Notify callback for HeightSpeed: Height: 5492 Speed: 4192
[15:13:06]Input response:
[15:13:06]Notify callback for HeightSpeed: Height: 5505 Speed: 4368
[15:13:06]Notify callback for HeightSpeed: Height: 5519 Speed: 4480
[15:13:06]
[15:13:06]Notify callback for HeightSpeed: Height: 5532 Speed: 4416
[15:13:06]Notify callback for HeightSpeed: Height: 5546 Speed: 4352
[15:13:06]Notify callback for HeightSpeed: Height: 5559 Speed: 4400
[15:13:06]Notify callback for HeightSpeed: Height: 5572 Speed: 4336
[15:13:06]Notify callback for HeightSpeed: Height: 5586 Speed: 4384
[15:13:06]Notify callback for HeightSpeed: Height: 5599 Speed: 4240
[15:13:06]Input response:
[15:13:06]Notify callback for HeightSpeed: Height: 5611 Speed: 4208
[15:13:06]Notify callback for HeightSpeed: Height: 5624 Speed: 4144
[15:13:06]
[15:13:07]Notify callback for HeightSpeed: Height: 5637 Speed: 4176
[15:13:07]Notify callback for HeightSpeed: Height: 5649 Speed: 4208
[15:13:07]Notify callback for HeightSpeed: Height: 5662 Speed: 4048
[15:13:07]Notify callback for HeightSpeed: Height: 5674 Speed: 4224
[15:13:07]Notify callback for HeightSpeed: Height: 5687 Speed: 4192
[15:13:07]Notify callback for HeightSpeed: Height: 5700 Speed: 4256
[15:13:07]Input response:
[15:13:07]Notify callback for HeightSpeed: Height: 5713 Speed: 4080
[15:13:07]Notify callback for HeightSpeed: Height: 5726 Speed: 4288
[15:13:07]
[15:13:07]Notify callback for HeightSpeed: Height: 5738 Speed: 4096
[15:13:07]Notify callback for HeightSpeed: Height: 5750 Speed: 1424
[15:13:07]Notify callback for HeightSpeed: Height: 5750 Speed: 0
[15:13:24]Control response:
[15:13:24]Notify callback for HeightSpeed: Height: 5749 Speed: 0
[15:13:25]75 16 00 00 
[15:13:25]Control response:
[15:13:27]75 16 00 00 
[15:13:27]Notify callback for HeightSpeed: Height: 5749 Speed: -480
[15:13:27]Input response:
[15:13:27]Notify callback for HeightSpeed: Height: 5747 Speed: -768
[15:13:27]Notify callback for HeightSpeed: Height: 5744 Speed: -1056
[15:13:27]Notify callback for HeightSpeed: Height: 5740 Speed: -1344
[15:13:27]Notify callback for HeightSpeed: Height: 5736 Speed: -1632
[15:13:27]Notify callback for HeightSpeed: Height: 5730 Speed: -1920
[15:13:27]Notify callback for HeightSpeed: Height: 5724 Speed: -2208
[15:13:27]Notify callback for HeightSpeed: Height: 5717 Speed: -2512
[15:13:28]Notify callback for HeightSpeed: Height: 5709 Speed: -2800
[15:13:28]Notify callback for HeightSpeed: Height: 5700 Speed: -3088
[15:13:28]Notify callback for HeightSpeed: Height: 5690 Speed: -3376
[15:13:28]Notify callback for HeightSpeed: Height: 5679 Speed: -3664
[15:13:28]Notify callback for HeightSpeed: Height: 5667 Speed: -3952
[15:13:28]Notify callback for HeightSpeed: Height: 5655 Speed: -4240
[15:13:28]Notify callback for HeightSpeed: Height: 5642 Speed: -4528
[15:13:28]Notify callback for HeightSpeed: Height: 5634 Speed: 0
[15:13:30]02 16 00 00 
[15:13:35]E (65198) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
[15:13:35]E (65198) task_wdt:  - async_tcp (CPU 1)
[15:13:35]E (65198) task_wdt: Tasks currently running:
[15:13:35]E (65198) task_wdt: CPU 0: wifi
[15:13:35]E (65198) task_wdt: CPU 1: IDLE
[15:13:35]E (65198) task_wdt: Aborting.
[15:13:35]
[15:13:35]abort() was called at PC 0x4010059c on core 0
[15:13:35]
[15:13:35]
[15:13:35]Backtrace:0x40083921:0x3ffbec4c |<-CORRUPTED
[15:13:35]
[15:13:35]
[15:13:35]
[15:13:35]
[15:13:35]ELF file SHA256: 0000000000000000
[15:13:35]
[15:13:35]Rebooting...
[15:13:35]ets Jul 29 2019 12:21:46
[15:13:35]
[15:13:35]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[15:13:35]configsip: 0, SPIWP:0xee
[15:13:35]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[15:13:35]mode:DIO, clock div:2
[15:13:35]load:0x3fff0018,len:4
[15:13:35]load:0x3fff001c,len:1044
[15:13:35]load:0x40078000,len:8896
[15:13:35]load:0x40080400,len:5828
[15:13:35]entry 0x400806ac
[15:13:35]{"DeskName":"Office Desk","DeskBtAddress":"CE:41:99:2E:BA:4D","UserReset":false}
[15:13:35]Config file was successfully parsed
[15:13:36][DeskController::connect] trying to connect to: CE:41:99:2E:BA:4D
[15:13:41]Name:
[15:13:41]Desk 7693
[15:13:41]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:13:41]Data: 01 03 01 6A 18 
[15:13:41]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:13:41]Data: 01 07 01 00 00 3A 82 A3 57 
[15:13:41]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:13:41]Data: 01 07 01 00 00 3B 82 A3 57 
[15:13:42]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:13:42]Data: 01 07 01 00 00 46 82 A3 57 
[15:13:42]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:13:42]Data: 01 11 01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 
[15:13:42]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:13:42]Data: 01 00 
[15:13:42]connected
[15:13:42]Current height: 1188 mm
[15:13:42]Getting height and printing it took: 99ms
[15:14:42]After waiting 60.00 secs , WiFi connection result is 6
[15:14:42]Failed to connect
[15:14:52]ets Jul 29 2019 12:21:46
[15:14:52]
[15:14:52]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[15:14:52]configsip: 0, SPIWP:0xee
[15:14:52]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[15:14:52]mode:DIO, clock div:2
[15:14:52]load:0x3fff0018,len:4
[15:14:52]load:0x3fff001c,len:1044
[15:14:52]load:0x40078000,len:8896
[15:14:52]load:0x40080400,len:5828
[15:14:52]entry 0x400806ac
[15:14:53]{"DeskName":"Office Desk","DeskBtAddress":"CE:41:99:2E:BA:4D","UserReset":false}
[15:14:53]Config file was successfully parsed
[15:14:53][DeskController::connect] trying to connect to: CE:41:99:2E:BA:4D
[15:14:58]Name:
[15:14:58]Desk 7693
[15:14:59]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:14:59]Data: 01 03 01 6A 18 
[15:14:59]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:14:59]Data: 01 07 01 00 00 3A 82 A3 57 
[15:14:59]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:14:59]Data: 01 07 01 00 00 3B 82 A3 57 
[15:14:59]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:14:59]Data: 01 07 01 00 00 46 82 A3 57 
[15:15:00]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:15:00]Data: 01 11 01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 
[15:15:00]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:15:00]Data: 01 00 
[15:15:00]connected
[15:15:00]Current height: 1188 mm
[15:15:00]Getting height and printing it took: 97ms
[15:16:00]After waiting 60.00 secs , WiFi connection result is 6
[15:16:00]Failed to connect
[15:16:10]ets Jul 29 2019 12:21:46
[15:16:10]
[15:16:10]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[15:16:10]configsip: 0, SPIWP:0xee
[15:16:10]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[15:16:10]mode:DIO, clock div:2
[15:16:10]load:0x3fff0018,len:4
[15:16:10]load:0x3fff001c,len:1044
[15:16:10]load:0x40078000,len:8896
[15:16:10]load:0x40080400,len:5828
[15:16:10]entry 0x400806ac
[15:16:11]{"DeskName":"Office Desk","DeskBtAddress":"CE:41:99:2E:BA:4D","UserReset":false}
[15:16:11]Config file was successfully parsed
[15:16:11][DeskController::connect] trying to connect to: CE:41:99:2E:BA:4D
[15:16:18]Name:
[15:16:18]Desk 7693
[15:16:19]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:16:19]Data: 01 03 01 6A 18 
[15:16:19]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:16:19]Data: 01 07 01 00 00 3A 82 A3 57 
[15:16:19]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:16:19]Data: 01 07 01 00 00 3B 82 A3 57 
[15:16:20]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:16:20]Data: 01 07 01 00 00 46 82 A3 57 
[15:16:20]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:16:20]Data: 01 11 01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 
[15:16:21]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:16:21]Data: 01 00 
[15:16:21]connected
[15:16:21]Current height: 1188 mm
[15:16:21]Getting height and printing it took: 98ms
[15:16:21]After waiting 0.00 secs , WiFi connection result is 3
[15:16:21]Local IP: 10.25.30.161
[15:16:21]HTTP server started
[15:17:21][checkConnection] (millis: 70424), state: 1
[15:18:21][checkConnection] (millis: 130424), state: 1
[15:19:21][checkConnection] (millis: 190424), state: 1
[15:20:21][checkConnection] (millis: 250424), state: 1
[15:21:21][checkConnection] (millis: 310424), state: 1
[15:22:21][checkConnection] (millis: 370424), state: 1
[15:23:21][checkConnection] (millis: 430424), state: 1
[15:24:21][checkConnection] (millis: 490424), state: 1
[15:25:21][checkConnection] (millis: 550424), state: 1
[15:26:21][checkConnection] (millis: 610424), state: 1
[15:27:21][checkConnection] (millis: 670424), state: 0
[15:27:21][checkConnection] Not connected trying to reconnect!
[15:27:21][DeskController::connect] trying to connect to: CE:41:99:2E:BA:4D
[15:27:27]Name:
[15:27:27]Desk 7693
[15:27:28]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:27:28]Data: 01 03 01 6A 18 
[15:27:28]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:27:28]Data: 01 07 01 00 00 3A 82 A3 57 
[15:27:29]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:27:29]Data: 01 07 01 00 00 3B 82 A3 57 
[15:27:29]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:27:29]Data: 01 07 01 00 00 46 82 A3 57 
[15:27:30]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:27:30]Data: 01 11 01 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 
[15:27:30]Notify callback for characteristic: 99fa0011-338a-1024-8a49-009c0215f78a
[15:27:30]Data: 01 00 
[15:27:30]connected
[15:28:21][checkConnection] (millis: 730424), state: 1
[15:29:21][checkConnection] (millis: 790424), state: 1
[15:30:21][checkConnection] (millis: 850424), state: 1

Add storing settings in EEPROM

In this task add the ability to store the provided settings in EEPROM so that they are persistent after reboots. Add an option to do a "factory reset" clearing everything we saved. Any saved data should be used after reboot - we should reconnect if we know the credentials.
Data to store:

  • Desks Bluetooth address
  • WiFi name and password
  • mDNS name

Get height causing reboot

After successfully connecting to my desk (using a Linak DPG1M004-00) and WiFi, I ran getHeight to get my device's current height. This is what I got, followed by a rebooting ESP32.

abort() was called at PC 0x40086b3f on core 0

ELF file SHA256: 0000000000000000

Backtrace: 0x40090e99:0x3fff0f60 0x40091261:0x3fff0f80 0x40086b3f:0x3fff0fa0 0x40086c5e:0x3fff0fc0 0x4014ca0a:0x3fff0fe0 0x40149b17:0x3fff1100 0x4014ca89:0x3fff1410 0x400863a1:0x3fff1440 0x400863c9:0x3fff1470 0x400f0425:0x3fff14c0 0x401081b6:0x3fff1530 0x400fd7e1:0x3fff1560 0x400fd9a8:0x3fff15b0 0x40118e31:0x3fff15d0 0x40119241:0x3fff15f0 0x4011c2c5:0x3fff1630 0x4011c339:0x3fff1650 0x400995da:0x3fff1670 0x40092fa9:0x3fff16a0
  #0  0x40090e99:0x3fff0f60 in invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:155
  #1  0x40091261:0x3fff0f80 in abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:172
  #2  0x40086b3f:0x3fff0fa0 in lock_init_generic at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c:81
  #3  0x40086c5e:0x3fff0fc0 in _lock_init_recursive at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/newlib/locks.c:95
  #4  0x4014ca0a:0x3fff0fe0 in __sbprintf at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:476
  #5  0x40149b17:0x3fff1100 in _vfprintf_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vfprintf.c:868 (discriminator 5)
  #6  0x4014ca89:0x3fff1410 in vprintf at /builds/idf/crosstool-NG/.build/HOST-x86_64-apple-darwin12/xtensa-esp32-elf/src/newlib/newlib/libc/stdio/vprintf.c:34
  #7  0x400863a1:0x3fff1440 in esp_log_writev at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/log/log.c:216
  #8  0x400863c9:0x3fff1470 in esp_log_write at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/log/log.c:225
  #9  0x400f0425:0x3fff14c0 in wifi_log at ??:?
  #10 0x401081b6:0x3fff1530 in ieee80211_getmgtframe at ??:?
  #11 0x400fd7e1:0x3fff1560 in ieee80211_encap_null_data at ??:?
  #12 0x400fd9a8:0x3fff15b0 in ieee80211_pm_tx_null_process at ??:?
  #13 0x40118e31:0x3fff15d0 in pm_go_to_wake at ??:?
  #14 0x40119241:0x3fff15f0 in pm_tbtt_process at ??:?
  #15 0x4011c2c5:0x3fff1630 in dbg_lmac_init at ??:?
  #16 0x4011c339:0x3fff1650 in pp_timer_do_process at ??:?
  #17 0x400995da:0x3fff1670 in ppTask at ??:?
  #18 0x40092fa9:0x3fff16a0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:143

Any clues what may cause this behavior?

`apply_patches.py` can fail silently

hey krzmaz,
unfortunately I can't generate a *.bin. Can you provide one to download and or check this? I am very interested in your project. I would like to have a look and test it. Thanks for your work at it and layout based on Tasmota is great!

collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32dev\firmware.elf] Error 1

thanks a lot

Multiple controllers on the network with the same DNS name

Hey,
if multiple controllers are on the network with the same DNS name. Is it possible to set the DNS name according to the name of the desk or name + MAC? NetBIOS-Name max 15 chars?
The same DNS-Name messes up the controller requests in the network and causes collisions.

Add Web user interface for setting the WiFi credentials and desks Bluetooth address

In the scope of this task add a simple landing page that allows setting the WiFi credentials (the ESP32 should firstly connect to the network specified in credentials.h, but be able to reconnect to a different network if one is provided), optional mDNS name and desks Bluetooth address. The device shouldn't make any Bluetooth connection until a Bluetooth address is provided.

Disconnect / Re-connect

with linak desk you can only have one Bluetooth device connected to the desk. to go around this i have added a timer that make the esp32 disconnect from the desk by calling controller.disconnect(). but i am not able to make it connect back until rebooting the esp32. do you have any idea what can cause this ?

Add converting data to human readable units

In this task add converting the raw values used by the controller to human readable units - cm and inches. Extend APIs to allow getting and setting the height using those units.

In the design consider the fact that we might read the desk offset ( difference between the actual desk height and the raw height which is a value read from the encoder on the piston) from the controller using dpg commands( see references for more details ) and calculate the human readable values using that.

Help needed compiling. / Please provide bianry. [wemos_d1_mini32]

Hi, thanks for you work on this. I installed vs code and platform io but unfortunately I'm unable to compile your latest realease.

Here is my console ouptput. I would apprechiate if you could have a look and let me know why it suddenlty want's the ESPAsyncDNSServer?

*  Executing task: C:\Users\Max\.platformio\penv\Scripts\platformio.exe run --environment esp32dev 

Warning! `test_build_project_src` configuration option in section [env:googletest_esp32] is deprecated and will be removed in the next release! Please use `test_build_src` insteadWarning! `src_filter` configuration option in section [env:googletest_esp32] is deprecated and will be removed in the next release! Please use `build_src_filter` instead
Warning! `src_filter` configuration option in section [env:native] is deprecated and will be removed in the next release! Please use `build_src_filter` instead
Processing esp32dev (platform: https://github.com/platformio/platform-espressif32.git; board: esp32dev; framework: arduino)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 (5.2.0+sha.03254d4) > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES: 
- framework-arduino-esp32 @ 2.0.5+sha.a5f03a8 
- framework-arduinoespressif32 @ 3.20005.220925 (2.0.5) 
- tool-esptoolpy @ 1.40201.0 (4.2.1) 
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch3
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 41 compatible libraries
Scanning dependencies...
Dependency Graph
|-- ArduinoJson @ 6.19.4
|-- ESP Async WebServer @ 1.2.3+sha.f71e3d4
|   |-- AsyncTCP @ 1.1.1
|   |-- FS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- ESPAsync_WiFiManager @ 1.15.0
|   |-- AsyncTCP @ 1.1.1
|   |-- ESP Async WebServer @ 1.2.3+sha.f71e3d4
|   |   |-- AsyncTCP @ 1.1.1
|   |   |-- FS @ 2.0.0
|   |   |-- WiFi @ 2.0.0
|   |-- ESP_DoubleResetDetector @ 1.3.2
|   |   |-- SPIFFS @ 2.0.0
|   |   |   |-- FS @ 2.0.0
|   |   |-- EEPROM @ 2.0.0
|   |   |-- FS @ 2.0.0
|   |   |-- LittleFS @ 2.0.0
|   |   |   |-- FS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- NimBLE-Arduino @ 1.4.0
|-- FauxmoESP @ 3.4.0
|   |-- AsyncTCP @ 1.1.1
|   |-- WiFi @ 2.0.0
|-- LinakDeskEmbedded
|   |-- LinakDeskCore
|   |-- NimBLE-Arduino @ 1.4.0
|-- ESPmDNS @ 2.0.0
|   |-- WiFi @ 2.0.0
|-- ESP_DoubleResetDetector @ 1.3.2
|   |-- SPIFFS @ 2.0.0
|   |   |-- FS @ 2.0.0
|   |-- EEPROM @ 2.0.0
|   |-- FS @ 2.0.0
|   |-- LittleFS @ 2.0.0
|   |   |-- FS @ 2.0.0
|-- FS @ 2.0.0
|-- LittleFS @ 2.0.0
|   |-- FS @ 2.0.0
|-- LinakDeskCore
Building in release mode
Compiling .pio\build\esp32dev\src\main.cpp.o
Archiving .pio\build\esp32dev\libf5d\libAsyncTCP.a
Archiving .pio\build\esp32dev\lib4ed\libFS.a
In file included from .pio/libdeps/esp32dev/ESPAsync_WiFiManager/src/ESPAsync_WiFiManager.h:40,
                from src/main.cpp:13:
.pio/libdeps/esp32dev/ESPAsync_WiFiManager/src/ESPAsync_WiFiManager.hpp:221:10: fatal error: ESPAsyncDNSServer.h: No such file or directory

***************************************************************************
* Looking for ESPAsyncDNSServer.h dependency? Check our library registry!
*
* CLI  > platformio lib search "header:ESPAsyncDNSServer.h"
* Web  > https://registry.platformio.org/search?q=header:ESPAsyncDNSServer.h
*
***************************************************************************

#include <ESPAsyncDNSServer.h>
         ^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Compiling .pio\build\esp32dev\lib586\WiFi\WiFiScan.cpp.o
Compiling .pio\build\esp32dev\lib586\WiFi\WiFiServer.cpp.o
Compiling .pio\build\esp32dev\lib586\WiFi\WiFiUdp.cpp.o
Compiling .pio\build\esp32dev\libdc2\ESP Async WebServer@src-e4ae2ab88c47a569bbf518658033926f\AsyncEventSource.cpp.o
Compiling .pio\build\esp32dev\libdc2\ESP Async WebServer@src-e4ae2ab88c47a569bbf518658033926f\AsyncWebSocket.cpp.o
Compiling .pio\build\esp32dev\libdc2\ESP Async WebServer@src-e4ae2ab88c47a569bbf518658033926f\SPIFFSEditor.cpp.o
Compiling .pio\build\esp32dev\libdc2\ESP Async WebServer@src-e4ae2ab88c47a569bbf518658033926f\WebAuthentication.cpp.o
Compiling .pio\build\esp32dev\libdc2\ESP Async WebServer@src-e4ae2ab88c47a569bbf518658033926f\WebHandlers.cpp.o
Compiling .pio\build\esp32dev\libdc2\ESP Async WebServer@src-e4ae2ab88c47a569bbf518658033926f\WebRequest.cpp.o
*** [.pio\build\esp32dev\src\main.cpp.o] Error 1
=========================================================================== [FAILED] Took 18.82 seconds ===========================================================================

Environment    Status    Duration
-------------  --------  ------------
esp32dev       FAILED    00:00:18.825
====================================================================== 1 failed, 0 succeeded in 00:00:18.825 ======================================================================

*  The terminal process "C:\Users\Max\.platformio\penv\Scripts\platformio.exe 'run', '--environment', 'esp32dev'" terminated with exit code: 1. 
*  Terminal will be reused by tasks, press any key to close it. 

Implement proper `move to height` functionality

Proper move to height functionality should check the height and speed characteristic to check if the desk stopped moving or is moving in opposite direction after hitting something. It should also have some kind of a timeout.

Issues while compiling in PlatformIO

Hi,
I'm getting the below error message during compilation. Any hints?

Tool Manager: Installing git+https://github.com/espressif/arduino-esp32.git#idf-release/v4.0 git version 2.30.1 (Apple Git-130) Cloning into '/Users/<user>/.platformio/.cache/tmp/pkg-installing-r4ijqaa0'... warning: Could not find remote branch idf-release/v4.0 to clone. fatal: Remote branch idf-release/v4.0 not found in upstream origin Error: VCS: Could not process command ['git', 'clone', '--recursive', '--depth', '1', '--branch', 'idf-release/v4.0', 'https://github.com/espressif/arduino-esp32.git', '/Users/<user>/.platformio/.cache/tmp/pkg-installing-r4ijqaa0'] The terminal process "platformio 'run'" terminated with exit code: 1.

Thanks

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.