Flow of a session:
- Create a new session with
start_offline_session. - Create a new BLEIntSDK Client with
accessDataToken,publicKeyBox,commandsreceived from the endpoint. - Connect to the vehicle with
macAddressBoxand start the board session. - Send commands to vehicle.
- Close the session by calling
end_offline_sessionwith all the commands payload received from the board.
Error codes that SDKs can send.
| Code | Description |
|---|---|
invalid_data |
Bad data format while creating a Client instance. |
invalid_state |
Client is not in the right state. E.g. calling any command before sessionSetup. |
invalid_session |
Session was refused by the board. E.g. might be already expired. |
invalid_command |
Command was refused by the board. E.g. encrypted payload might not be right. |
not_connected |
Bluetooth is not in connected state. |
timeout |
Bluetooth action timed out. |
peripheral_not_found |
Bluetooth peripheral not found. |
internal |
Internal error. |
- 2hire-BLEIntSDK, iOS and Swift.
- BLEIntSDK-Android, Android and Kotlin.
- @2hire/react-native-bleintsdk, React Native bridge.
- @2hire/cordova-plugin-bleintsdk, Cordova plugin.
- SwiftUI Cocoapods, iOS only.
- ionic-cordova with Angular 13, Android and iOS.
- react-native Android and iOS.