nabto_device_set_basestation_attach()
DESCRIPTION
Enable/disable basestation attach. When disabled, the device will not attempt to connect to the Nabto Basestation and clients will only be able to connect to the device directly (local connection using mdns discovery or with direct candidates). This function can be called both before and after nabto_device_start(), but not after nabto_device_close(). If uncalled before nabto_device_start() attach will default to enabled.
DECLARATION
NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_set_basestation_attach(NabtoDevice* device, bool enable)
PARAMETERS
device:
- [in] The device.
enable:
- [in] if True the device will attach to the basestation.
RETURNS
NABTO_DEVICE_EC_OK
: on successNABTO_DEVICE_INVALID_STATE
: if device closed