node-freebox-sdk
SDK to manage Freebox v6.
Right now, only wifi is manageable. Stay tuned.
Quick Examples
Toggle wifi connection and get wifi informations.
var Freebox = ;var freebox = password: "my_password" wifiChannel: 11 wifiHtMode: "disabled" //disabled, 20, 40_lower, 40_upper; freebox; freebox; freebox;
API
new Freebox(options)
Password is the only mandatory option.
var options = {}; optionspassword; //default value: ""optionshostname; //default value: "mafreebox.free.fr";optionsport //default value: 80optionslogin //default value: "freebox";optionswifiChannel //default value: 9;optionswifiHtMode //default value: "disabled";
wifiHtMode allowed values : "disabled", 20, "40_lower", "40_upper"
freebox.connect()
Start a connection between Node and Freebox.
freebox.wifiStations(callback)
Get wifi connected stations. Callback take one "result" argument.
freebox.wifiStatus(callback)
Get wifi status. Callback take one "result" argument.
freebox.wifiConfig(callback)
Get wifi configuration. Callback take one "result" argument.
freebox.wifiOn(callback)
Switch on WiFi. Callback take one "result" argument.
freebox.wifiOff(callback)
Switch off WiFi. Callback take one "result" argument.