Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uamqp compile issue on aarch64 #16

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@
install_requires=[
"msrest>=0.6.21,<1.0.0",
# NOTE: Python 2.7, 3.5 support dropped >= 1.4.0
"uamqp>=1.2.14,<2.0.0",
"azure-core>=1.10.0,<2.0.0",
],
python_requires=">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4",
Expand Down
2 changes: 1 addition & 1 deletion src/azure/iot/hub/constant.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"""This module defines constants for use across the azure-iot-hub package
"""

VERSION = "2.6.1"
VERSION = "2.7.0"
115 changes: 0 additions & 115 deletions src/azure/iot/hub/iothub_amqp_client.py

This file was deleted.

29 changes: 0 additions & 29 deletions src/azure/iot/hub/iothub_registry_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
from . import iothub_amqp_client
from .auth import ConnectionStringAuthentication, AzureIdentityCredentialAdapter
from .protocol.iot_hub_gateway_service_ap_is import IotHubGatewayServiceAPIs as protocol_client
from .protocol.models import (
Expand Down Expand Up @@ -69,24 +68,15 @@ def __init__(self, connection_string=None, host=None, token_credential=None):
:returns: Instance of the IoTHubRegistryManager object.
:rtype: :class:`azure.iot.hub.IoTHubRegistryManager`
"""
self.amqp_svc_client = None
if connection_string is not None:
conn_string_auth = ConnectionStringAuthentication(connection_string)
self.protocol = protocol_client(
conn_string_auth, "https://" + conn_string_auth["HostName"]
)
self.amqp_svc_client = iothub_amqp_client.IoTHubAmqpClientSharedAccessKeyAuth(
conn_string_auth["HostName"],
conn_string_auth["SharedAccessKeyName"],
conn_string_auth["SharedAccessKey"],
)
else:
self.protocol = protocol_client(
AzureIdentityCredentialAdapter(token_credential), "https://" + host
)
self.amqp_svc_client = iothub_amqp_client.IoTHubAmqpClientTokenAuth(
host, token_credential
)

@classmethod
def from_connection_string(cls, connection_string):
Expand Down Expand Up @@ -119,13 +109,6 @@ def from_token_credential(cls, url, token_credential):
"""
return cls(host=url, token_credential=token_credential)

def __del__(self):
"""
Deinitializer for a Registry Manager Service client.
"""
if self.amqp_svc_client is not None:
self.amqp_svc_client.disconnect_sync()

def create_device_with_sas(
self,
device_id,
Expand Down Expand Up @@ -914,15 +897,3 @@ def invoke_device_module_method(self, device_id, module_id, direct_method_reques
direct_method_request.payload = ""

return self.protocol.modules.invoke_method(device_id, module_id, direct_method_request)

def send_c2d_message(self, device_id, message, properties={}):
"""Send a C2D message to a IoTHub Device.

:param str device_id: The name (Id) of the device.
:param str message: The message that is to be delivered to the device.
:param dict properties: The properties to be send with the message. Can contain
application properties and system properties

:raises: Exception if the Send command is not able to send the message
"""
self.amqp_svc_client.send_message_to_device(device_id, message, properties)
Loading