jrowberg / bglib

BGLib implementation for Bluegiga BLE Bluetooth Smart modules
Other
239 stars 170 forks source link

Only scanning appears to work can't connect or read / write #54

Open bretpelkey opened 6 years ago

bretpelkey commented 6 years ago

Can any one help me or provide more documentation on bglib.SendCommand().

This command works fine: result = bglib.SendCommand(serialAPI, bglib.BLECommandSystemHello());

But not this: result = bglib.SendCommand(serialAPI, bglib.BLECommandGAPConnectDirect(new byte[] { 46, 180, 169, 89, 178, 246 }, (byte)AddressType.Public, CONN_INT_MIN, CONN_INT_MAX, TIMEOUT, LATENCY));

or result = bglib.SendCommand(serialAPI, bglib.BLECommandConnectionDisconnect(0));