coinespy API calls: Interface and board information¶
open_comm_interface¶
Sets the communication interface between board and PC to USB or Serial.
For the definition of CommInterface, refer to 11.3.6.3.
close_comm_interface¶
Disposes the resources used by the USB/serial/BLE communication.
get_board_info¶
Obtains board specific information.
BoardInfo = coinesboard.get_board_info()
# Return:
BoardInfo.HardwareId # Hardware ID
BoardInfo.SoftwareId # Firmware version information
BoardInfo.Board # Board type
BoardInfo.ShuttleID # ID of shuttle, in case a shuttle is detected
scan_ble_devices¶
This API is used to connect to BLE Adapter and return list of BLE peripherals found during BLE scan.
For the definition of parameters, refer to 6.8.29.echo_test¶
This API is used to test the communication.
Arguments:data
: Data to be sent for testing.