Skip to content

Read issue after polling characteristics #65

@Sobattan

Description

@Sobattan

Hi @adabru,

Thank you a lot for this repo. I have a little problem, I am not a developer at first but for my project I have to increase my knowledge sorry if there is any approximation.
I am trying to connect an arduino through the BLE to a Unity game.
When I use the demo just to test if it's working, I can connect to my device, I found the service and the characteristic but I can't read the value. Nothing happens.
I tried with the Microsoft's Bluetooth Low Energy sample. Which works until I reach the same step. When I read, I get a status saying : "Read Result : Unknown format". So I understand that there is no problem with the reading in itself but more with the variable inside the characteristic.

I am already able to read the Characteristic with another arduino so I think that the Characteristics is updating well.

On the arduino side, I tried by simply put in the main loop :
int level = 10;
MyChar.writeValue(level);

I know that the writeValue() method automatically convert level into unsigned char.

Do you think it is a problem ?
Do you have any idea on how to handle this format with BleWinrtDll ?

Thank you a lot !!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions