Skip to content

Instantly share code, notes, and snippets.

Avatar

Rob Lingstuyl anwarhamr

  • Salt Lake City, Utah, USA
View GitHub Profile
@anwarhamr
anwarhamr / scan only every 10s for 5s
Last active Sep 23, 2020
connecting and scanning runs out of clientIf (GATT clients) and no longer connects
View scan only every 10s for 5s
This logcat log is from and Android 6 OS. Using React-natvie-ble-manager@7.3.1
I don't have an option to upgrade the OS since this
is really the only option out there for an FDA approved medical tablet...
I see the clientIf values just continue to climb and finally run out w/
the appearance of `bt_btif : Register with GATT stack failed.`
I expect to connect to 4 devices when all 4 are connected I don't try to scan again;
does not happen in this log. Until I'm connected to 4 devices I scan every 10 seconds.
In this log I only see 4 device disconnections and the log shows that the GATT is
@anwarhamr
anwarhamr / index.js
Last active Nov 25, 2019 — forked from zkat/index.js
npx is cool
View index.js
#!/usr/bin/env node
var cowsay = require('cowsay')
console.log(cowsay.say({
text : "Hi Mimi, Did you know...",
e : "oo",
T : "U "
}));
setTimeout(()=>{
console.log(cowsay.say({
View bleCommunicator.state.json
{
bleCommunicator: {
scanStatus: 'BLE_SCAN_STOPPED',
connectedDevices: [
'80:EA:CA:00:00:04'
],
allFwVersions: {},
loadedFirmware: {},
'80:EA:CA:00:00:04': {
rssi: -68,
View gist:c08a66db6e91535376d4598180156d60
[
{
"user_dim": {
"user_id": null,
"first_open_timestamp_micros": "1528150323035000",
"user_properties": [
{
"key": "first_open_time",
"value": {
"value": {