Closed alport closed 3 years ago
The option you want I think is --set-owner
For instance:
meshtastic --info --host 192.168.20.7 --set-owner bob
Connected to radio
Setting device owner to bob
Owner: Im Remote (IR)
My info: { "myNodeNum": 681021528, "hasGps": true, "numBands": 10, "firmwareVersion": "1.2.30.069b0d3-d", "rebootCount": 71, "messageTimeoutMsec": 300000, "minAppVersion": 20200, "maxChannels": 8 }
Nodes in mesh:
{'num': 681021528, 'user': {'id': '!28979058', 'longName': 'Im Remote', 'shortName': 'IR', 'macaddr': 'JG8ol5BY', 'hwModel': 'TBEAM'}, 'position': {}, 'lastHeard': 1621821336}
{'num': 2885173400, 'user': {'id': '!abf84098', 'longName': 'Main Node', 'shortName': 'MN', 'macaddr': 'JGKr+ECY', 'hwModel': 'TBEAM'}, 'position': {'latitudeI': 250389597, 'longitudeI': 1215725169, 'altitude': 54, 'batteryLevel': 42, 'time': 1618026306, 'latitude': 25.0389597, 'longitude': 121.5725169}, 'lastHeard': 1620014270, 'snr': 9.25}
Preferences: { "phoneTimeoutSecs": 60, "lsSecs": 309, "wifiSsid": "hotel family room", "region": "TW", "debugLogEnabled": true }
Channels:
PRIMARY psk=default { "modemConfig": "Bw125Cr48Sf4096", "psk": "AQ==", "uplinkEnabled": true }
SECONDARY psk=secret { "psk": "Ag7fmRQxMpYxvvb0R/bjoB93ly4vnbu2iZOmoevZgwo=", "name": "admin" }
SECONDARY psk=secret { "psk": "oGArM+rw1wPuHYiifdqW20RIQ+VW4TcWms/QKTmP/F0=", "name": "gpio" }
Primary channel URL: https://www.meshtastic.org/d/#CggYAyIBAYABAQ
Complete URL (includes all channels): https://www.meshtastic.org/d/#CggYAyIBAYABAQopIiACDt-ZFDEyljG-9vRH9uOgH3eXLi-du7aJk6ah69mDCioFYWRtaW4KKCIgoGArM-rw1wPuHYiifdqW20RIQ-VW4TcWms_QKTmP_F0qBGdwaW8
meshtastic --setowner KR-Relay doesn’t work for me using FW V1.2.10.
I get:
(base) MBP-5792:~ alport$ meshtastic --port /dev/cu.SLAB_USBtoUART --setowner KR-Relay Connected to radio Setting device owner to KR-Relay Exception while handling connection: ‘SerialInterface’ object has no attribute ‘setOwner’
From: https://meshtastic.discourse.group/t/howto-easy-create-a-relay-router-node/2105/9?u=mike