Convert BLE Advertising_Type from 3(Non connectable undirected advertising (ADV_NONCONN_IND)) to 0 (Connectable undirected advertising (ADV_IND)), which matches actual Airtag message, also supports display the name of device.
Give proper notice to user if the ble address cannot be altered. For example, the Raspberry Pi4 ble hardware won't change its mac address.
Print usage and help if no parameter is given.
Allowing to set the ble device and device name with parameters. Easier to broadcast on different ble deivces.
Removed logic of restarting the bluetooth service and use specific adapter reset command.
Refactor.