Hi, I’m comfortable using the Wifi Extension, but can it detect app2 on device2 (tablet) running on the same wifi that app1 is connected on, but running on device1 (android phone)?
I want to able to transfer text data between the two apps once each app has detected the other device on wifi, and checked that the other app is up and running.
Is this possible; has anyone done/seen anything similar to this?
honestly I didn’t do this by using WiFi but by using BT (one device was set as a server and the second was acting as a client). Obviously the transfer speed is lower than WiFi, but just for sharing commands and data display in a quasi-reatltime environment it was enough.
Probably other (power) users have already done what you ask for, therefore before thiking to use the BT, please wait a while for further answers.
I succeeded in doing that between two Lenovo pads: one was behaving as a BT client toward an Arduino system (the server) but working also as a BT server toward another Lenovo pad, acting as a BT client.
In a nutshell: the same Lenovo pas was capable to work “contemporary” as a BT client and a BT server in the same app.
But also @Taifun’s suggestion seems to be exactly what the user wants
Dear @Kevinkun,I see that @Taifun has already responded you, and, in effect, since in the classic BT the devices are “paired”, this makes the communication a one-to-one way.
Pbobably with the BLE, but I’m not sure, because the BLE is a so “nasty dog” that I’ve never tried that!
Cheers.
EDIT: I remember that I’ve connected three PIR sensors driven by three ESP8266 to a pad (always my Lenovo) by means of a local WiFi network, but this is another story
You can take a look here:
Second EDIT:
There is also another possibility (in addition to what @Taifun has already suggested). to have on the same pad both the Classic and the BLE working at the same time with two different servers:
Although I have never done it theoretically you can connect up to 7 clients to 1 BT server. This applies to BT 5.0.I Do not know about the lower versions. BLE allows you to connect more, but I do not know the exact number.
Edit: Also I do not know If you can do it with appinventor. Maybe not.
Dear @Usane, many thanks for this correction. We never stop learning
Honestly in my devices I always have had the need to unpair a device before pairing another one.
In some cases I have had the need to completely switch off the BT on one device, before being capable to connect another one (I remember that I’ve got troubles with a BT conection between a pad and an Arduino until I switched off (removed the power) another pad that I had in the trunk of my car).
Things are changing faster than my brain can follow…(and that my wallet can buy )
I know the feeling. BT was always a pain in the @ss for me too, so I avoided it like the plague. I just made a simple connection with BT to try it out. But it is evolving like many thing. For good or not, future wil tell.