Add CoAP option length decoding function
Handle subscribed events from server