def inet_handler(self, tag_info): # Hydrate the message msg = CpRfMsg(tag_info) if(CpDefs.Encoding == CpEncoding.CpJson): # Send message as standard JSON object self.inetThread.enqueue_packet(msg.toJson()) elif(CpDefs.Encoding == CpEncoding.CpJsonCustom): # Send message as custom JSON object self.inetThread.enqueue_packet(msg.toCustomJson()) elif(CpDefs.Encoding == CpEncoding.CpJsonCustomBase64): # Send message as Base64 encoded custom JSON object self.inetThread.enqueue_packet(msg.toCustomJsonBase64()) elif(CpDefs.Encoding == CpEncoding.CpRaw): # Send message in raw byte format self.inetThread.enqueue_packet(msg)
def inet_handler_debug(self, tag_info): # Hydrate the message msg = CpRfMsg(tag_info) self.inetThread.enqueue_packet(msg.toJson())