Beispiel #1
0
def registration_info(
    cmd, app_id: str, device_id, token=None, central_dns_suffix=CENTRAL_ENDPOINT,
):
    provider = CentralDeviceProvider(cmd=cmd, app_id=app_id, token=token,)

    return provider.get_device_registration_info(
        device_id=device_id, central_dns_suffix=central_dns_suffix, device_status=None,
    )
Beispiel #2
0
def registration_info(
    cmd,
    app_id: str,
    device_id,
    token=None,
    central_dns_suffix="azureiotcentral.com",
):
    provider = CentralDeviceProvider(
        cmd=cmd,
        app_id=app_id,
        token=token,
    )

    return provider.get_device_registration_info(
        device_id=device_id,
        central_dns_suffix=central_dns_suffix,
        device_status=None,
    )