smaho-engineering / esptouch_flutter

ESP-Touch Dart API for Flutter. Platform-specific implementation for Android (Java) and iOS (Objective-C).
https://pub.dev/packages/esptouch_flutter
MIT License
100 stars 34 forks source link

How to send some other info with ip adress #23

Closed mralperem closed 2 years ago

mralperem commented 2 years ago

Hello,

When i connected successfully i see the ip adress of the module and the bssid information on my app.

How can i send some other information to app alongside the ip and bssid when connected successfully?

vincevargadev commented 2 years ago

ESP-Touch doesn't support this (or at least doesn't support this out-of-the-box). What you can do is

  1. run an HTTP server on your embedded device
  2. add an endpoint where the embedded device serves every additional info you need in the app
  3. make an HTTP requests from the app (and now you have the IP of the embedded device, and the mobile and the embedded device are probably on the same network, so you can easily do that)
vincevargadev commented 2 years ago

Hi @mralperem, Could you solve your issue?