The main goal of this task is to expose all methods from github repo and wrap on NativeModule package. Our objective is connect and operate an BLE (Bluetooth Low Energy aka.: Bluetooth 4.0) device through a NativeModule exposed methods.
Device info: [url removed, login to view]
GitHub repo with library and example: [url removed, login to view]
Docs: [url removed, login to view] (PT-BR)
Fist, we need to seek and connect to device, and then, be able to send payments commands to it. All methods are listed on official docs. There is an example named "pagcafe" within the repo.
Obs.: We are going to use this package on Android Things device (Raspberry Pi3). Android Things use the same methods from Android OS to seek and connect to BLE devices. Some examples:
Example running RPi3 as Bluetooth Server: [url removed, login to view]
Bluetooth GATT Server: [url removed, login to view]
We can consider the task done when:
1) A little example app can list and connect with BLE devices through native module
2) Establish connection with a device (in this case i will test with my POS machine)
3) Send payments and call for last payment info (basically, expose all methods from "PlugPag lib")
Obs.: Would be nice if you can test it on Android Things (DP-5.1) RPi3 device