mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
some examples were swapped
This commit is contained in:
parent
772f60b394
commit
a899af1f1e
2 changed files with 9 additions and 9 deletions
|
|
@ -3,15 +3,14 @@
|
|||
import asyncio
|
||||
import json
|
||||
from meshcore import MeshCore
|
||||
from meshcore import TCPConnection
|
||||
from meshcore import BLEConnection
|
||||
|
||||
HOSTNAME = "mchome"
|
||||
PORT = 5000
|
||||
DEST = "t1000"
|
||||
ADDRESS = "t1000" # node ble adress or name
|
||||
DEST = "mchome"
|
||||
MSG = "Hello World"
|
||||
|
||||
async def main () :
|
||||
con = TCPConnection(HOSTNAME, PORT)
|
||||
con = BLEConnection(ADDRESS)
|
||||
await con.connect()
|
||||
mc = MeshCore(con)
|
||||
await mc.connect()
|
||||
|
|
|
|||
|
|
@ -3,14 +3,15 @@
|
|||
import asyncio
|
||||
import json
|
||||
from meshcore import MeshCore
|
||||
from meshcore import BLEConnection
|
||||
from meshcore import TCPConnection
|
||||
|
||||
ADDRESS = "t1000" # node ble adress or name
|
||||
DEST = "mchome"
|
||||
HOSTNAME = "mchome"
|
||||
PORT = 5000
|
||||
DEST = "t1000"
|
||||
MSG = "Hello World"
|
||||
|
||||
async def main () :
|
||||
con = BLEConnection(ADDRESS)
|
||||
con = TCPConnection(HOSTNAME, PORT)
|
||||
await con.connect()
|
||||
mc = MeshCore(con)
|
||||
await mc.connect()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue