Public Member Functions | |
def | __init__ |
def | __getOptionHeader__ |
def | __str__ |
def | getOptionHeaderValue |
def | getOptionHeaderExtension |
def | appendOption |
def | getBytes |
def | parseByteArray |
Public Attributes | |
version | |
type | |
code | |
id | |
token | |
options | |
host | |
port | |
uri_path | |
content_format | |
payload | |
Static Public Attributes | |
list | TYPES = ["CON", "NON", "ACK", "RST"] |
int | CON = 0 |
int | NON = 1 |
int | ACK = 2 |
int | RST = 3 |
def webiopi.protocols.coap.COAPMessage.__init__ | ( | self, | |
msg_type = 0 , |
|||
code = 0 , |
|||
uri = None |
|||
) |
def webiopi.protocols.coap.COAPMessage.__getOptionHeader__ | ( | self, | |
byte | |||
) |
Definition at line 129 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.parseByteArray().
def webiopi.protocols.coap.COAPMessage.__str__ | ( | self | ) |
Definition at line 134 of file coap.py.
References webiopi.protocols.coap.COAPMessage.code, webiopi.protocols.coap.COAPRequest.CODES, webiopi.protocols.coap.COAPResponse.CODES, webiopi.protocols.coap.COAPMessage.content_format, webiopi.protocols.coap.COAPMessage.id, webiopi.protocols.coap.COAPMessage.payload, webiopi.protocols.coap.COAPMessage.token, pulse.type, webiopi.protocols.coap.COAPMessage.type, webiopi.protocols.coap.COAPMessage.TYPES, webiopi.protocols.coap.COAPMessage.uri_path, and webiopi.protocols.coap.COAPMessage.version.
def webiopi.protocols.coap.COAPMessage.appendOption | ( | self, | |
buff, | |||
lastnumber, | |||
option, | |||
data | |||
) |
Definition at line 172 of file coap.py.
References webiopi.protocols.coap.COAPMessage.getOptionHeaderExtension(), and webiopi.protocols.coap.COAPMessage.getOptionHeaderValue().
Referenced by webiopi.protocols.coap.COAPMessage.getBytes().
def webiopi.protocols.coap.COAPMessage.getBytes | ( | self | ) |
Definition at line 197 of file coap.py.
References webiopi.protocols.coap.COAPMessage.appendOption(), webiopi.protocols.coap.COAPMessage.code, webiopi.protocols.coap.COAPMessage.content_format, webiopi.protocols.coap.COAPMessage.id, webiopi.protocols.coap.COAPMessage.payload, webiopi.protocols.coap.COAPMessage.token, pulse.type, webiopi.protocols.coap.COAPMessage.type, webiopi.protocols.coap.COAPMessage.uri_path, and webiopi.protocols.coap.COAPMessage.version.
def webiopi.protocols.coap.COAPMessage.getOptionHeaderExtension | ( | self, | |
value | |||
) |
Definition at line 157 of file coap.py.
References webiopi.protocols.coap.COAPMessage.getOptionHeaderValue().
Referenced by webiopi.protocols.coap.COAPMessage.appendOption().
def webiopi.protocols.coap.COAPMessage.getOptionHeaderValue | ( | self, | |
value | |||
) |
Definition at line 150 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.appendOption(), and webiopi.protocols.coap.COAPMessage.getOptionHeaderExtension().
def webiopi.protocols.coap.COAPMessage.parseByteArray | ( | self, | |
buff | |||
) |
Definition at line 247 of file coap.py.
References webiopi.protocols.coap.COAPMessage.__getOptionHeader__(), webiopi.protocols.coap.COAPMessage.code, webiopi.protocols.coap.COAPMessage.id, webiopi.protocols.coap.COAPMessage.options, webiopi.protocols.coap.COAPMessage.payload, webiopi.protocols.coap.COAPMessage.token, pulse.type, webiopi.protocols.coap.COAPMessage.type, webiopi.protocols.coap.COAPMessage.uri_path, and webiopi.protocols.coap.COAPMessage.version.
webiopi.protocols.coap.COAPMessage.code |
Definition at line 112 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), webiopi.protocols.coap.COAPMessage.getBytes(), and webiopi.protocols.coap.COAPMessage.parseByteArray().
webiopi.protocols.coap.COAPMessage.content_format |
Definition at line 119 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), and webiopi.protocols.coap.COAPMessage.getBytes().
webiopi.protocols.coap.COAPMessage.host |
Definition at line 116 of file coap.py.
Referenced by webiopi.protocols.http.HTTPServer.run(), and webiopi.protocols.coap.COAPServer.run().
webiopi.protocols.coap.COAPMessage.id |
Definition at line 113 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), webiopi.protocols.coap.COAPMessage.getBytes(), and webiopi.protocols.coap.COAPMessage.parseByteArray().
webiopi.protocols.coap.COAPMessage.options |
Definition at line 115 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.parseByteArray().
webiopi.protocols.coap.COAPMessage.payload |
Definition at line 120 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), webiopi.protocols.coap.COAPMessage.getBytes(), and webiopi.protocols.coap.COAPMessage.parseByteArray().
webiopi.protocols.coap.COAPMessage.port |
Definition at line 117 of file coap.py.
Referenced by webiopi.protocols.coap.COAPServer.enableMulticast(), webiopi.protocols.http.HTTPServer.run(), and webiopi.protocols.coap.COAPServer.run().
webiopi.protocols.coap.COAPMessage.token |
Definition at line 114 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), webiopi.protocols.coap.COAPMessage.getBytes(), and webiopi.protocols.coap.COAPMessage.parseByteArray().
webiopi.protocols.coap.COAPMessage.type |
Definition at line 111 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), webiopi.protocols.coap.COAPMessage.getBytes(), and webiopi.protocols.coap.COAPMessage.parseByteArray().
Definition at line 103 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__().
webiopi.protocols.coap.COAPMessage.uri_path |
Definition at line 118 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), webiopi.protocols.coap.COAPMessage.getBytes(), and webiopi.protocols.coap.COAPMessage.parseByteArray().
webiopi.protocols.coap.COAPMessage.version |
Definition at line 110 of file coap.py.
Referenced by webiopi.protocols.coap.COAPMessage.__str__(), webiopi.protocols.coap.COAPMessage.getBytes(), and webiopi.protocols.coap.COAPMessage.parseByteArray().