Skip to content

nlucent/NR-XBeeAPI

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NR-XBeeAPI

Node-RED module to support use of XBee wireless modules using xbee-api.

Based on Node-Red serial.js

Status:

Inbound and outbound messages working

Prerequisites

  1. Node-RED's serial module must be enabled

  2. Install xbee-api from npm

    $ npm install xbee-api

Example for sending a message to Xbee-api out node:

// See Xbee-API docs for API definitions
msg.payload = { 
				// Set type to frame_type string from xbee-api constants
				type: "REMOTE_AT_COMMAND_REQUEST",
		  		command: "D0",
		  		destination64: "0013A2004052989C",
    			remoteCommandOptions: 0x02, 
		  		commandParameter: [ ]
		}; 
return msg;

About

node-RED xbee node using xbee-api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%