multipeer¶
Peer to peer wireless connection
Use this module to trade data with other devices running Pyto. Works without WiFi.
-
multipeer.
connect
()¶ Starts connecting to other devices.
-
multipeer.
disconnect
()¶ Disconnects from all connected devices.
-
multipeer.
get_data
() → str¶ Returns available data. Returns once per available data.
Return type: str
-
multipeer.
send
(data: str)¶ Sends the given string to other connected devices.
Parameters: data – The string to send.