This is my first time trying out to code on C# or VisualStudio. Sorry if I am too much of a newbie.
I have a raspberry pi zero setup as a BLE GATT server, which I followed exactly with this guide.
My ultimate goal is just trying to send a text from the pi zero to my laptop.
Being a little familiar with python, I have tried to use Bleak to communicate with the GATT server but for some reason, I'm never able to connect to the GATT server. So I gave up trying to tinker with Bleak.
( Please note that I have used nRF Toolbox to verify that the pi zero BLE GATT server is set up correctly )
Fast foward, one day I saw this BLE GATT Client Sample from Microsoft. So I downloaded VisualStudio and followed the guide to deploy the sample.
Everything worked fine, I can connect to the GATT server and write data to the specific RX characteristics.
But the real problem resides on the TX characteristics, when I try to send data from the GATT server console to the laptop. The BLE Client Sample will show the value as "Unknown Format"
It seems that the data will be encoded ( value.append(dbus.Byte(c.encode()))
) with this before updating the TX charactersitics.
I tried to Google about this, but any further research will only make my head burn harder.
I'm sorry, can anyone tell me how to fix this "Unknown Format" data decode problem?
Thanks so much in advance.