Hi Gordon.
The GPS device does not require any passkey or similar for connect to my phone.
This is the link of the device: http://base.galileosky.com/articles/#!en-documentation/developing-a-mobile-app-for-interacting-with-galileosky-tracking-devices-via-bluetooth
And this is the script that i used in web ( its work)
<script> const print = (...args) => { console.log(...args); } const UUI_SPS = "0783b03e-8535-b5a0-7140-a304d2495cb7"; const UUI_SERVER_TX = "0783b03e-8535-b5a0-7140-a304d2495cb8"; const UUI_SERVER_RX = "0783b03e-8535-b5a0-7140-a304d2495cba"; const UUI_FLOW_CTRL = "0783b03e-8535-b5a0-7140-a304d2495cb9"; const DEVICE_NAME = "GS7X 354762118079554"; const filters = [{ name: [ DEVICE_NAME ] }]; const optionalServices = [ UUI_SPS,UUI_SERVER_TX,UUI_SERVER_RX,UUI_FLOW_CTRL ]; const button = document.querySelector('button'); button.addEventListener('click', demo); function demo() { navigator.bluetooth.requestDevice({ filters, optionalServices }) .then(device => device.gatt.connect()) .then(server => server.getPrimaryService(UUI_SPS)) .then(service => service.getCharacteristic(UUI_SERVER_TX)) .then(characteristic => characteristic.startNotifications()) .then(characteristic => { characteristic.addEventListener('characteristicvaluechanged', handleCharacteristicValueChanged); print('Notifications have been started.'); }) .catch(error => { console.error(error); }); } function handleCharacteristicValueChanged(event) { const value = event.target.value; let a = []; for (let i = 0; i < value.byteLength; i++) { a.push(value.getUint8(i).toString(16)); } console.log('> ' + a); } </script>
1 Attachment
@Ricardo started
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.
Hi Gordon.
The GPS device does not require any passkey or similar for connect to my phone.
This is the link of the device: http://base.galileosky.com/articles/#!en-documentation/developing-a-mobile-app-for-interacting-with-galileosky-tracking-devices-via-bluetooth
And this is the script that i used in web ( its work)
1 Attachment