• @user9517 / Clare

    Check this (API) reference site... and - beside the Puck class you already found - every other class starting with Blue... and you will be out of the 'blues'...

    Espruino devices are so called JavaScript standalone microcontroller. There is no operating system or a like as a separate entity. All you need is part of the language, in this case JavaScript and it's implementation of globals, functions, and classes / modules,...

    Bluetooth - and many other things - are not just working on Puck. Espruino supports lot of different devices. Some they haver their specifc class, because that's only available on that particular device. But all other stuff runs on all devices - almost: some devices are a bit more short on resources - FLASH and RAM and appliances - and therefore the build - or loaded Espruino firmware - does not include all the things to leave some space for you applications. With Puck though, you are on the safe side.

    A good starting place for examples is https://www.espruino.com/Puck.js - especially the https://www.espruino.com/Pixl.js+Multipl­ayer+Pong - a Ping Pong - game. You will say: I do not have Pixl, I have Puck... right... but you can see there how two BLE devices can talk to each other... and on the forum you find plenty of conversations and posts that deal with the subject of BLE devices finding each other, connect to one another, and exchanging data. After all, it is not a Puck thing, it is a BluetoothLE thing...

About

Avatar for allObjects @allObjects started