a) I had the same problem. I just resolved by sending the message in base64 instead of hexadeximal. This means: 0 is “AA==” and 1 is “AQ==”. I think there is some bug in TTN because I couldn’t send it with hexadecimal.
Now, the following script sends a downlink with value 1:
Thanks a lot! I have worked it out a few days ago. But your suggestion about not using “set_downlink_callback” is very useful.
By the way, have you figured out what is the function of “set_downlink_callback” ? Is it about ACK confirmed?