Rikke 11/30/2022 12:12 PMI will have to push it to tomorrow, but here's some info:
I am blocking the mqtt port 1883 to disconnect the esp from mqtt, and when I unblock it again, it reports this:
2022-11-30 11:48:39,808 DEBUG: Connected to broker
2022-11-30 11:48:39,814 DEBUG: Attempting to (re)connect
2022-11-30 11:48:39,825 Heap report @ out of memory:
2022-11-30 11:48:39,838 ┌───────────┬─────────┬───────────────────────┐
2022-11-30 11:48:39,843 │ Bytes │ Count │ Type │
2022-11-30 11:48:39,855 ├───────────┼─────────┼───────────────────────┤
2022-11-30 11:48:39,860 │ 5256 │ 4 │ external byte array │
2022-11-30 11:48:39,866 │ 102400 │ 19 │ toit │
2022-11-30 11:48:39,871 │ 8952 │ 37 │ lwip │
2022-11-30 11:48:39,876 │ 7992 │ 723 │ heap overhead │
2022-11-30 11:48:39,881 │ 7864 │ 51 │ event source │
2022-11-30 11:48:39,886 │ 32872 │ 313 │ thread/other │
2022-11-30 11:48:39,891 │ 22304 │ 21 │ thread/spawn │
2022-11-30 11:48:39,896 │ 23280 │ 159 │ untagged │
2022-11-30 11:48:39,901 │ 33864 │ 81 │ wifi │
2022-11-30 11:48:39,914 └───────────┴─────────┴───────────────────────┘
2022-11-30 11:48:39,921 Total: 244784 bytes in 685 allocations (82%), largest free 52k, total free 54k
2022-11-30 11:48:39,924 DEBUG: Connection established
2022-11-30 11:48:39,926 INFO: disconnect from server
2022-11-30 11:48:39,929 DEBUG: Attempting to (re)connect
2022-11-30 11:48:39,937 DEBUG: Attempting to (re)connect
It keeps giving the Heap report @ out of memory
, so I think it tries to reconnect multiple times with the same client, and having multiple clients with same name will disconnect each other.