some examples were swapped

This commit is contained in:
Florent 2025-03-30 08:42:52 +02:00
parent 772f60b394
commit a899af1f1e
2 changed files with 9 additions and 9 deletions

View file

@ -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()

View file

@ -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()