@jeffmer I notice you've got a getGattforCentralServer in there. Did you ever implement that in your own server?
Right now as I know the JS implementation of Bluetooth Central can only deal with one connection, which is handled with a global m_central_connection variable. As a quick hack I guess we could set that to the same as m_peripheral_connection with a function, but the best solution would be to store the handle in the BluetoothGattServer structure and then we could interface with >1 central device at the same time
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@jeffmer I notice you've got a
getGattforCentralServer
in there. Did you ever implement that in your own server?Right now as I know the JS implementation of Bluetooth Central can only deal with one connection, which is handled with a global
m_central_connection
variable. As a quick hack I guess we could set that to the same asm_peripheral_connection
with a function, but the best solution would be to store the handle in the BluetoothGattServer structure and then we could interface with >1 central device at the same time