Here is the output I receive when I run the example code on my mac. It hangs at the second "connected":
± % node test.js !6614
Noble: stateChange -> poweredOn
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device: be-89-30-00-21-95
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device: 90-dd-5d-e8-59-50
Found device: 90-dd-5d-e8-59-50
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device:
Found device: f2-09-f2-78-7d-9a
BT> Connecting
Found device: f2-09-f2-78-7d-9a
BT> Connecting
BT> Connected
BT> Connected
^C
EDIT: Changed the wording below to be less confusing.
I am not making direct HTTP requests from the Puck but from a raspberry pi. How does one press a button on the device to trigger the HTTP request on the raspberry pi? Then after that poll the puck for the temperature?
Sorry, I am new to BLE and have been confused by hours of reading about it.
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.
Here is the output I receive when I run the example code on my mac. It hangs at the second "connected":
EDIT: Changed the wording below to be less confusing.
I am not making direct HTTP requests from the Puck but from a raspberry pi. How does one press a button on the device to trigger the HTTP request on the raspberry pi? Then after that poll the puck for the temperature?
Sorry, I am new to BLE and have been confused by hours of reading about it.