- My goal is: I am trying to use Config over BLE GATTS with require pairing enabled and allow pairing disabled. My goal is to allow user to pair on specific button event for a limited amount of time. but i am able to send WIFI creds over BLE without pairing.
- My actions are:
my Config schema includes:
config_schema: - ["bt.enable", true] - ["bt.keep_enabled", true] - ["bt.max_paired_devices", -1] - ["bt.gatts.require_pairing", true] - ["bt.gatts.min_sec_level", 0]
and libs includes:
- origin: https://github.com/mongoose-os-libs/rpc-gatts - origin: https://github.com/mongoose-os-libs/bt-common - origin: https://github.com/mongoose-os-libs/bt-service-config
- The result I see is: In above case, Mongoose OS should not allow me to use BLE services but i am able to send wifi creds without pairing to device first.
- My expectation & question is: Am i doing something wrong? or can someone please give me an example or a way to accomplish my goal.
Thank you in advance.