Skip to content

Commit de20099

Browse files
committed
bugfix
1 parent 0b840a8 commit de20099

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ To uninstall, run `npm remove @danpeig/node-red-meshtastic-msg` from the same ba
3232

3333
- Failed installation: Depending on the installation method, you may have to edit the file `meshtastic-msg.js` and change the path of the ImportSync to the location where Meshtastic library was installed. Example: `importSync("../../@meshtastic/js/dist/index.js")`.
3434
- Device is connecting and can send messages but not receive: Device can be overloaded with requests, try increasing the fetch interval.
35+
- Node-RED crashing after an update: This can happen if the update alters the structure of the device connection node. Find the connection node in your `flows.json` file and replace it by the connection node found in `meshtastic-msg_examples.json`.
36+
- Node-RED crashing when using `meshtastic.local` host. This happens when the hostname fails to resolve. Prefer using direct IP address instead.
3537

3638
## Examples
3739

examples/meshtastic-msg_examples.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@
401401
"id": "5d05318ff941d6ab",
402402
"type": "meshtastic-msg-device",
403403
"fetch_interval": "5000",
404-
"address": "meshtastic.local",
404+
"address": "192.168.0.1",
405405
"connection_mode": "http",
406406
"log_level": "1"
407407
},

meshtastic-msg.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@
182182
category: "config",
183183
defaults: {
184184
fetch_interval: { value: 5000, required: true },
185-
address: { value: "meshtastic.local", required: true },
185+
address: { value: "192.168.0.1", required: true },
186186
connection_mode: { value: "http", required: true },
187187
log_level: { value: "3", required: true },
188188
},
@@ -335,7 +335,7 @@
335335
<input
336336
type="text"
337337
id="node-config-input-address"
338-
placeholder="meshtastic.local"
338+
placeholder="192.168.0.1"
339339
/>
340340
</div>
341341
<div class="form-row">

meshtastic-msg.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ module.exports = function (RED) {
277277

278278
//Connection parameters and failsafe defaults (to prevent crashes after updates)
279279
let address =
280-
config.address === undefined ? "meshtastic.local" : config.address;
280+
config.address === undefined ? "192.168.0.1" : config.address;
281281
let fetchInterval =
282282
Number(config.fetch_interval) == 0 ? 5000 : Number(config.fetch_interval);
283283
let logLevel = Number(config.log_level);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@danpeig/node-red-meshtastic-msg",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"scripts": {
55
"test": "echo \"Error: no test specified\" && exit 1"
66
},

0 commit comments

Comments
 (0)