I am trying to figure out how to use the GAP API to switch roles during run time.
My device will start up in a peripheral role and allow connections. When not in a connection, the device will switch between observer and broadcaster based on commands received over a serial port. Can I just call GAP_DeviceInit() each time I want to switch roles? or will I have to reset the device? Are there any examples of this?