First of all, thanks for the reply.
I have a question about the answer you received. Any further reply would be appreciated.
How is your python script disconnecting from the device? The device should not be resetting on disconnect unless commanded to. --> My script commands libmetawear.mbl_mw_debug_disconnect(s.device.board) and proceeds to reset libmetawear.mbl_mw_debug_reset(s.device.board), Is the setting value maintained even after resetting like this??
In order for a setting to persist through a power cycle the macro system can be used to set that parameter at power-on. --> Can you provide a python example of the macro system??
Finally, is there any other way to maximize the BLE distance?
libmetawear.mbl_mw_debug_reset(s.device.board)clears all settings and resets all sensors on the device. So this will be reverting your tx_power command. Unless you really want to wipe your sensor settings or similar, you should not need to issue a device reset at every disconnect.
You can have a look at
macro_setup.pyin the MetaWear-SDK-Python examples directory. For what I understand of your use case, I would recommend removing the sensor reset from your disconnect actions instead.
Other than tx power, there are not many ways to control BLE distance. Avoid placing the sensor on solid metal surfaces. Reception is typically limited to within the same room for reliable data throughput.