LAN protocol StateXFirmware Version parsing

Can anyone tell me how to parse the StateHostFIrmware and StateWifiFirmware Version uint32 into something useful?

Hello @pdf,

Here is how lightsd does it: proto.c@2a59ad7#235, you’ll have to go through this loop to see it.

Also everything in those packets is in little-endian byte order.



Nice one, thanks @lopter

In the python library I wrote I do it the same way.