This free plugin enables your Android device to communicate with the Puck.js Bluetooth JavaScript micro-controller. Detailed information about controlling the Puck can be found
on the :- http://www.espruino/Puck.js web site.
You can use this plugin in your apps to remotely control all functions of your Puck by sending JavaScript code to the interpreter inside the Puck via Bluetooth. You can also receive the console output of your Puck programs to get information back to your app.
Although you can send raw JavaScript code to the Puck using the SendCode method, in many cases you may prefer to use the built-in convenience methods provided by this plugin. These methods allow you easily perform common tasks such as controlling the LEDs, reading the battery level, reading button presses and getting the temperature etc.
这个免费的插件让你的Android设备与Puck.js蓝牙JavaScript的微控制器进行通信。有关控制普克的详细信息,可以发现
上: - HTTP://www.espruino/Puck.js网站。
您可以使用此插件在你的应用程序被通过蓝牙普克内发送JavaScript代码来解释远程控制你的普克的所有功能。您还可以收到你的顽童程序的控制台输出得到信息反馈给你的应用程序。
虽然你可以使用SendCode方法发送原始JavaScript代码至托盘,在很多情况下,你可能更愿意使用这个插件提供内置的便捷方法。这些方法允许您轻松执行常见任务,如控制LED,读取电池电平,读按钮按压和获取的温度等