Yes, noticed these myself too and tried to find them in the system framework. I couldn’t find where the events where defined or emitted. I suspect it is somewhere in the closed sourced WICED stack.
so I suspect something is getting corrupted but I don’t have enough information/knowledge about it to make that kind of claim.
Something I thought of is that this could be 10 and 11 hex, but it is not. Here is the logger line:
netlog.error("An unknown Network event was triggered (%d)", param);
Hmmm… this makes me think…
Ok I went back and looked and the issue was that I didn’t have those two statuses covered in my switch…case for capturing events. Here is the new trace:
Damn I feel stupid. I have a lot of experience with bit manipulation but somehow I read it as a shift by 5 instead of a shift by 1, so a multiply by 2.
1<<5is shifting 1 (irrespective whether you write 1 << 5, 0x01 << 5 or 0b00000001 << 5) five binary places and all of that would end in 0b00100000 = 0x20 = 32
network_status_disconnecting and network_status_disconnected are not documented, so if implementing a network status event handler, be aware that these events should be expected as well.