![]() ![]() Var buttons = buttonManager.getButtons() įor (var i = 0 i < buttons.length i++) ),Ĭonsole. List all buttons and print all the information in JSON format to the console: var buttonManager = require("buttons") Command PromptĪ simple command prompt is available through the online IDE with some simple commands to manage buttons and WiFi configurations. This flag will ensure that the package is re-run after a crash or boot. You can choose to run packages with or without the "Restart after crash" flag. More information about available modules can be fount in the Flic Hub SDK Module Documentation. You can include a module using the require() semantics: var buttonManager = require("buttons") Modulesĭifferent hub features, such as button management, network, http etc, are accessed through modules. Each package has a main.js which will be executed when the package runs. The code you write on the hub are divided into packages. The password is written on the label on the Flic Hub. If the Hub does not show up, you can enter the IP address which can be found on the Hub settings view in the Flic app. If the Flic Hub is online and on the same local network it should appear in the list. Make sure your computer is connected to the same local network as the Flic Hub. Make sure you are on the same local network.Choose your favorite actions for Click, Double click and Hold. Tap the Flic symbol in the app to set up actions. Connect your Flic by following the instructions in the app. Login with your existing Flic account or create a new account. If the app tells you a firmware update is needed, use the "Update Firmware" button below. Download the Flic app using the link on top of this page () Open the app. If you do not see this option you need to update your Hubs firmware. Using the Flic app, connect to the Hub and make sure "Enable SDK Access" is turned on Power the Flic Hub using the USB port with a power adapter with at least 2A output.Įither plug in the Ethernet cable or configure WiFi using the Flic app. To access the Flic Hub SDK, please follow these steps: The local IP address can be found by connecting to the hub using the Flic app and check under Settings, or by finding it through your routers admin interface. The connection between the online IDE and the Flic Hub happens locally over a websocket so to connect you need to be on the same LAN as the Hub and connect using its local IP address. Packages are written in Javascript and are stored locally on the hub. The Flic Hub SDK lets you connect to your Flic Hub using our online IDE to write packages that can run on the hub. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |