Set a device as a beacon peripheral.