Skip to content

Commit 989ce3a

Browse files
committed
Added technical details for controller developers regarding OTA bootloader
1 parent 4c8e96b commit 989ce3a

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

NodeJsController.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ const dbAddress = '127.0.0.1';
1111
const dbPort = 27017;
1212
const dbName = 'MySensorsDb';
1313

14-
const fwSketches = [ '../libraries/MySensors/examples/DallasTemperatureSensor/DallasTemperatureSensor.ino' ];
15-
const fwDefaultType = 0; // index of hex file from array above
14+
const fwSketches = [ ];
15+
const fwDefaultType = 0xFFFF; // index of hex file from array above (0xFFFF
1616

1717
const FIRMWARE_BLOCK_SIZE = 16;
1818
const BROADCAST_ADDRESS = 255;

Readme.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,10 +290,8 @@ ISP_MCU = m328p</p>
290290
<h1>End-to-End Test</h1>
291291
<h2>Add Firmware to Controller (here: DallasTemperatureSensor)</h2>
292292
<ul>
293-
<li>use Arduino IDE or codebender or whatever other way to compile your sketch
294-
<li>copy the compiled DallasTemperatureSensor.cpp.hex file to the NodeJsController directory (if using the Arduino IDE, enable verbose logging in preferences and then watch the compilation process to find the temp directory where the output is stored)
295293
<li>nano ~/Arduino/NodeJsController/NodeJsController.js
296-
<p>const fwHexFiles = [ <font color="#FF0000">'DallasTemperatureSensor.cpp.hex'</font> ];<br/>
294+
<p>const fwHexFiles = [ <font color="#FF0000">'../libraries/MySensors/examples/DallasTemperatureSensor/DallasTemperatureSensor.ino'</font> ];<br/>
297295
const fwDefaultType = <font color="#FF0000">0</font>;</p>
298296
<li>sudo service mysensors restart (at this point stop/restart doesn't work. use "sudo killall node" followed by "sudo service mysensors start" instead)
299297
</ul>

0 commit comments

Comments
 (0)