mirror of
https://github.com/meshcore-dev/meshcore_py.git
synced 2026-04-20 22:13:49 +00:00
add flood param to advert
This commit is contained in:
parent
0e7c04b740
commit
5fd4db660d
1 changed files with 5 additions and 2 deletions
|
|
@ -233,9 +233,12 @@ class MeshCore:
|
|||
async def send_device_qeury(self):
|
||||
return await self.send(b"\x16\x03");
|
||||
|
||||
async def send_advert(self):
|
||||
async def send_advert(self, flood=False):
|
||||
""" Make the node send an advertisement """
|
||||
return await self.send(b"\x07")
|
||||
if flood :
|
||||
return await self.send(b"\x07\x01")
|
||||
else :
|
||||
return await self.send(b"\x07")
|
||||
|
||||
async def set_name(self, name):
|
||||
""" Changes the name of the node """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue