An open API service indexing awesome lists of open source software.

https://github.com/reelyactive/puckyactive-firmware

Firmware examples for Puck.js enabling puckyActive demos. We believe in an open Internet of Things.
https://github.com/reelyactive/puckyactive-firmware

ble eddystone-tlm eddystone-uid espruino puckjs puckyactive

Last synced: 14 days ago
JSON representation

Firmware examples for Puck.js enabling puckyActive demos. We believe in an open Internet of Things.

Awesome Lists containing this project

README

          

puckyactive-firmware
====================

Firmware examples for [Puck.js](https://www.puck-js.com/) which enable puckyActive demos.

Installation
------------

Point your browser to [www.espruino.com/ide](https://www.espruino.com/ide/). In the Espruino Web IDE, load the firmware file from this repository (ex: sensing.js). Connect with the Puck.js you'd like to program, then click the _Send to Espruino_ button. Once the transfer is complete, disconnect from the Puck.js which will then begin advertising.

See our detailed tutorial [Program a Puck.js with puckyActive](https://reelyactive.github.io/program-a-puckjs-with-puckyactive.html).

Examples
--------

There are four examples, each described below.

### Sensing

The __sensing.js__ example will advertise all of the sensor readings available on the Puck.js in a single advertising packet.

### Eddystone-UID

The __eddystone-uid.js__ example will advertise an [Eddystone-UID](https://github.com/google/eddystone/tree/master/eddystone-uid) packet which includes:
- an 80-bit _namespace_ identifier
- a 48-bit _instance_ identifier.

### Eddystone-TLM

The __eddystone-tlm.js__ example will advertise an [Eddystone-TLM](https://github.com/google/eddystone/blob/master/eddystone-tlm/tlm-plain.md) packet which includes telemetry data such as:
- battery voltage
- temperature
- advertising count
- uptime

### Eddystone-TLM with Timeout

The __eddystone-tlm-timeout.js__ example is the same as the above except that it has a programmable timeout duration. Specifically, after a given number of seconds, the Puck.js will blink red for another given number of seconds then go to sleep. Pushing the button will wake the device from sleep, reset the Telemetry values and resume activity until the next timeout.

License
-------

MIT License

Copyright (c) 2017-2019 [reelyActive](https://www.reelyactive.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.