Oct-18-2022, 10:17 AM
In the function
Sorry. The last bracket is excessive. It generated the error.
def parse_message(msg_data): ival = 0 fval = 0.0 opcode = msg_data[3] if opcode == MSG_OPCODE_VALUE: ival = (msg_data[8] << 24) | (msg_data[7] << 16) | (msg_data[6]<< 8) | msg_data[5]) fval = ival / 10000.0 return fvalI get - Unresolved reference 'msg_data'. Do I miss something?
Sorry. The last bracket is excessive. It generated the error.