FROM ibmcom/swift-ubuntu:latest
# Install Vapor Toolbox
RUN curl -sL toolbox.vapor.sh | bash
# Set work dir to /vapor
WORKDIR /vapor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function transmitCommand(identifier,command) { | |
console.log('In transmit command'); | |
console.log('identifier: ' + numHex(identifier)); | |
console.log('command: ' + command); | |
var txAddress = parseInt("0xE8E8F0"+numHex(identifier)+"E2", 16); | |
tx = radio.openPipe('tx', txAddress,{autoAck:true}); | |
tx.on('ready', function () { | |
console.log("Radio is ready:"); |