🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    M5Stack ESP32 BLE tx power level

    Units
    2
    3
    7.2k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gero Nimo
      last edited by Gero Nimo

      Hey guys,
      This is my first post in this forum. I used the search but could not find a solution for my problem.

      I would like to read the tx power level of BLE beacons with my M5Stack ESP32.
      I get the rssi value but I would like to know the transmission power. I do not mean the 1Byte "transmitted/measured power" that you should receive on 1m range. I mean the power level that determines how strongly the beacon sends its broadcast (what the max. range should be).

      I would like to read whether the beacon is configurated to send only at e.g. max. range of 2m or maybe 15m.

      I use Arduino and PlatformIO with int8_t BLEAdvertisedDevice::getTXPower ()
      http://www.neilkolban.com/esp32/docs/cpp_utils/html/class_b_l_e_advertised_device.html#a8c62ba653ba4f6fb904b6bc195620511

      And I always get txPower: 0. using haveTXPower() returns false. But my smartphone with the usuals apps displays without and problems the txPower value (e.g. -20dBm that would indicate the ble beacon has only few meters max. range)

      Did anyone had success with a M5Stack to read those txPower values?
      Is there any code snippet that REALLY WORKS? There are planty online but they show 0 txPower and false on haveTxPower.

      greetings

      edit: further infos from platformIO
      PLATFORM: Espressif 32 > M5Stack Core ESP32
      HARDWARE: ESP32 240MHz 320KB RAM (4MB Flash)
      Libs: M5Stack 0.2.5

      1 Reply Last reply Reply Quote 0
      • G
        Gero Nimo
        last edited by

        so guys, any news or comments on this topic?

        would appreciate it

        1 Reply Last reply Reply Quote 0
        • ajb2k3A
          ajb2k3
          last edited by

          Sorry my friend but their seams to be an issue with bluetooth on the esp32.

          UIFlow, so easy an adult can learn it!
          If I don't know it, be patient!
          I've ether not learned it or am too drunk to remember it!
          Author of the WIP UIFlow Handbook!
          M5Black, Go, Stick, Core2, and so much more it cant be fit in here!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post