smart_meter_texas/__init__.py
def _asn1_value_to_string(self, tag_number, value):
        """Retrieves the ASN.1 value as a string value"""
        if tag_number == asn1.Numbers.ObjectIdentifier:
            return value
        elif isinstance(value, bytes):
            return "0x" + str(binascii.hexlify(value).upper())
        elif isinstance(value, str):
            return value
        else:
            return repr(value)
Retrieves the ASN.1 value as a string value
Retrieves the ASN.1 value as a string value
Retrieves the ASN . 1 value as a string value
def _asn1_value_to_string(self, tag_number, value):
        if tag_number == asn1.Numbers.ObjectIdentifier:
            return value
        elif isinstance(value, bytes):
            return "0x" + str(binascii.hexlify(value).upper())
        elif isinstance(value, str):
            return value
        else:
            return repr(value)
def _asn1_value_to_string ( self , tag_number , value ) : if tag_number == asn1 . Numbers . ObjectIdentifier : return value elif isinstance ( value , bytes ) : return "0x" + str ( binascii . hexlify ( value ) . upper ( ) ) elif isinstance ( value , str ) : return value else : return repr ( value )
Retrieves the ASN.1 value as a string value
Retrieves the ASN . 1 value as a string value
"""Retrieves the ASN.1 value as a string value"""
self
tag_number
value