𧩠WIFI Transfer
An extension to transfer data from one device to another using WIFI: Peer to peer or
WIFI direct connection.
Extension version: 1.0 Transmo
Thanks to all beta-testers for helping with suggestions, bugs and improvement of the extension, and even @Vknow360 for helping me!
Use the extension for FREE and should NOT be republished until it's necessary.
π Documentation
This block is used to know when the device is successfully connected to another peer. isHost returns the condition true if the device is owner of the WIFI connection.
When the connection request block is used, this block helps you to know if that request is sent or if it's failed. code is the result number.
Code | Condition | β |
---|---|---|
0 | Internal error has occured | |
1 | WIFI Peer to peer is not supported | |
2 | System is unable to process request | |
-1 | Request sent successfully |
After you receive a text or file data this blocks will be fired. data contains the received data or path of the saved file. isFile indicates whether the data receied is a file or text.
This block is fired and updated when new devices come in the search of available devices. names contains the WIFI device names and addresses contains device addresses.
The event fired when the connected device is disconnected or lost connection.
Event fired when sent data. length contains the value of how many bytes are sent.
The event raised when failed to start discovery. errorCode values are same as ConnectionRequestResult's error code.
The event fired when the discovery of devices is started.
Returns the available bytes pending to be received.
Connect to a device using the device's index.
Disconnect from the connected device.
Returns true if the device is the host of the connection.
If the files are split, use this block to merge them into one with the file names and the save path.
Read text from the number of bytes given
Receive the file from the number of bytes given and the save path.
Send a list of byte values. Same as you do in Bluetooth component.
Send the file to the connected device.
Send a message to the connected device.
Use this block to start the device discovery.
Use this block to stop the device discovery.
Set the connection timeout.
Get the current connection timeout value.
Set the port of the connection.
Get the current value of the connection port.
π Download
Download this extension. It's free. You cannot resell it.
If you come across any bugs, then let me know about them.
com.kumaraswamy.wifitransmo
π GitHub - Source
Feel free to contribute to the source and improving it.
An extension made by Kumaraswamy B.G