Failed to change device name permanently
I try to change my device name permanently using Macros- here is my code:
When I run the code, sometimes i get this error "Did not receive macro id within 250ms" . on the other times i get id=0 .Also, i do see the name changes bug after reset it returns to "MetaWear" , and i can see that the macro wasn't saved in flash
1. Do i miss something?
2. Can i increase the response time ?
metawear = Application.GetMetaWearBoard(mac);
metawear.InitializeAsync().Wait(); IMacro macro = metawear.GetModule<IMacro>(); macro.EraseAll(); macro.StartRecord(true); ISettings settings = metawear.GetModule<ISettings>(); settings.EditBleAdConfig(name : newName) byte id = await macro.EndRecordAsync();```