mirror of
https://github.com/meshtastic/python.git
synced 2026-01-19 05:07:58 -05:00
Use this method for the --settime command line flag - which sets the device
time to be the same as the local computers time (in UTC)
def sendPosition(self, latitude=0.0, longitude=0.0, altitude=0, timeSec=0, destinationId=BROADCAST_ADDR, wantAck=False, wantResponse=False):
"""
Send a position packet to some other node (normally a broadcast)
Also, the device software will notice this packet and use it to automatically set its notion of
the local position.
If timeSec is not specified (recommended), we will use the local machine time.
"""
65 lines
1.6 KiB
JSON
65 lines
1.6 KiB
JSON
{
|
|
// Use IntelliSense to learn about possible attributes.
|
|
// Hover to view descriptions of existing attributes.
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
"version": "0.2.0",
|
|
"configurations": [
|
|
{
|
|
"name": "meshtastic BLE",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "meshtastic",
|
|
"justMyCode": false,
|
|
"args": ["--debug", "--ble", "--device", "24:62:AB:DD:DF:3A"]
|
|
},
|
|
{
|
|
"name": "meshtastic info",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "meshtastic",
|
|
"justMyCode": true,
|
|
"args": ["--debug", "--info"]
|
|
},
|
|
{
|
|
"name": "meshtastic setpref",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "meshtastic",
|
|
"justMyCode": true,
|
|
"args": ["--debug", "--setpref", "a", "1", "--setpref", "b", "2"]
|
|
},
|
|
{
|
|
"name": "meshtastic shell",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "meshtastic",
|
|
"justMyCode": true,
|
|
"args": ["--debug", "--seriallog", "stdout"]
|
|
},
|
|
{
|
|
"name": "meshtastic test",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "meshtastic",
|
|
"justMyCode": true,
|
|
"args": ["--debug", "--test"]
|
|
},
|
|
{
|
|
"name": "meshtastic settime",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "meshtastic",
|
|
"justMyCode": true,
|
|
"args": ["--debug", "--settime"]
|
|
},
|
|
{
|
|
"name": "meshtastic sendtext",
|
|
"type": "python",
|
|
"request": "launch",
|
|
"module": "meshtastic",
|
|
"justMyCode": true,
|
|
"args": ["--debug", "--sendtext", "pytest"]
|
|
}
|
|
]
|
|
}
|