FlashAir
API for Node.js
API Wrapper
npm install flashair2
var flashair = require("flashair")(appname, appmode);
Specifies the application hostname ( the URL of the CGI server )
In the default CONFIG
the parameter APPNAME
default value is flashair
.
Wireless mode, available options are : STA
and AP
In the default CONFIG
the parameter APPMODE
default value is STA
.
Write your code!
versione firmware 2.00.00+
- Get file list
- Get the number of files
- Get update status
- Get SSID
- Get network password
- Get MAC address
- Set browser language
- Get the firmware version
- Get the control image
- Get Wireless LAN mode
- Set Wireless LAN timeout length
- Get application unique information
- New Get Upload parameters
- Get CID
- New Get time stamp of write event
- Get data from shared memory
- Set data to shared memory
- Get the number of empty sectors
- New Control SD Interface as user I/O
- Enable Photo Share mode
- Disable Photo Share mode
- Get Photo Share mode status
- Get SSID for Photo Share mode
- Set Connection Timeout
- Set Application's Unique Information
- Set Wireless LAN Mode
- Set Network Security Key
- Set SSID
- Set Network Security Key for Internet Pass-Thru Mode
- Set SSID for Internet Pass-Thru Mode
- Set Wireless LAN Boot Screen Path
- Set Master Code
- Get Wireless LAN mode
- Set Wireless LAN timeout length
- Get application unique information
- New Get Upload parameters
- Get CID
- New Get time stamp of write event
- Get data from shared memory
- Set data to shared memory
- Get the number of empty sectors
- New Control SD Interface as user I/O
- Enable Photo Share mode
- Disable Photo Share mode
- Get Photo Share mode status
- Get SSID for Photo Share mode
- Get thumbnail
TODO
flashair.command.getFileList("/", function (err, files) {
if (err)
throw err;
console.log(files);
});
The MIT License (MIT)
Copyright (c) 2013 Takenori Nakagawa
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.