21.04.2020, 06:23
This line is incorrect (only 0xA0 is assigned to cmd):
It should be:
You might need to swap cmd1 and cmd2 if it still does not work. You can also use loghex() instead of log() to convert binary data to hex.
Code:
cmd = 0xA0, 0x1F
It should be:
Code:
cmd1, cmd2 = 0xA0, 0x1F
x, err = ble.sockwritereq(sock, 0x33, cmd1, cmd2)
You might need to swap cmd1 and cmd2 if it still does not work. You can also use loghex() instead of log() to convert binary data to hex.