Any example code, or base level instructions as to how to adjust the code to be able to connect to multiple Thunderboard Sense boards (for sensor data capturing and IoT storage / analysis)?
At the moment I'm running a somewhat brought together code which has this as the connection part:
`def vReadSENSE():
scanner = Scanner(0)
devices = scanner.scan(2)
for dev in devices:
print "Device %s (%s), RSSI=%d dB" % (dev.addr, dev.addrType, dev.rssi)
Would I need to call the ble_service[char_sensor]... again with a different name in the []? char_sensor_1 perhaps? Or is the ble_service the unique name for each BLE peripheral?
Sorry for the entry-level type questions here however I cannot seem to find an example from the code snippets online. Any help would be most appreciated.
Running multiple instances of the same script(just change peripheral MAC address) works for me which is not ideal thing to do. But you can try that if that fulfills your purpose.
@IanHarvey
Any example code, or base level instructions as to how to adjust the code to be able to connect to multiple Thunderboard Sense boards (for sensor data capturing and IoT storage / analysis)?
At the moment I'm running a somewhat brought together code which has this as the connection part:
`def vReadSENSE(): scanner = Scanner(0) devices = scanner.scan(2) for dev in devices: print "Device %s (%s), RSSI=%d dB" % (dev.addr, dev.addrType, dev.rssi)
`
Would I need to call the ble_service[char_sensor]... again with a different name in the []? char_sensor_1 perhaps? Or is the ble_service the unique name for each BLE peripheral?
Sorry for the entry-level type questions here however I cannot seem to find an example from the code snippets online. Any help would be most appreciated.
Regards,
Neal Johannesburg