Hello,
I’m trying to make a basic app that sends/receives simple string messages to a Digi XBee RR 802.15.4 TH, that will communicate serially to an arduino to turn relays on/off. I followed the pdf guide for .NET MAUI and managed to get bluetooth messages working from the Xbee to my Windows laptop. However, whenever I try to send data to the Xbee, the app throws an error:
DigiIoT.Maui.Exceptions.DigiIoTException: ‘Timeout writing in the TX Characteristic’
Here is my code snippet:
private void OnButtonOnClicked(object sender, EventArgs e) {
myXBeeDevice.SendUserDataRelay(XBeeLocalInterface.BLUETOOTH, Encoding.UTF8.GetBytes(“ON”));
DisplayAlert(“Click!”, “Turning On Relays…”, “OK”);
}
I have tried using different commands, such as SendSerialData, SendData, etc, but every one of them seem to result in this exception. How do I fix this?
Thanks!