logo elektroda
logo elektroda
X
logo elektroda

ESP32 Bluetooth: How to Download Data from Two Devices Simultaneously?

globalinfo 852 2
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 19309885
    globalinfo
    Level 13  
    Hello everyone,
    I have customised the following program which connects via bluetooth and downloads data (download result below).
    Unfortunately I don't know how to download data from two devices simultaneously via ESP32.
    Now only after changing in
    Code: C / C++
    Log in, to see the code
    to
    Code: C / C++
    Log in, to see the code
    I connect to the second device.
    Please help.
    Quote:
    .
    Searching for AT24CB-BLE device
    . Detected
    Stopped scanning and connected to AT24CB-BLE: 47:71:f7:a7:25:93
    Stablishing communications with scale:
    BLE client created
    Connected to scale
    Service found
    Characteristic found
    Setting callback for notify / indicate
    Data bytes: 255 85 1 1 0 9 64 0 0 0 0 0 0 0 0 4 0 5 20
    Downloaded values:
    - Voltage : 236.8
    - Current : 0.000
    - Power : 0.0
    ...
    .

    Code: C / C++
    Log in, to see the code
    .
  • ADVERTISEMENT
  • #2 19345479
    powerT
    Level 9  
    Familiarise yourself with the mesh library
    only it is not BT, but Wi-Fi transmission (works smoothly) the number of devices is arbitrary
  • #3 19372927
    globalinfo
    Level 13  
    powerT wrote:
    Check out the mesh library
    only that it is not BT, but the transmission via Wi-Fi (works smoothly) number of devices is arbitrary
    .
    Yes via WiFi without any problem, but the meters they connect to can only communicate via BT.
ADVERTISEMENT