Yet Another WebIOPi+
 All Classes Namespaces Files Functions Variables Macros Pages
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
webiopi.protocols.coap.COAPMessage Class Reference
Inheritance diagram for webiopi.protocols.coap.COAPMessage:
webiopi.protocols.coap.COAPRequest webiopi.protocols.coap.COAPResponse webiopi.protocols.coap.COAPDelete webiopi.protocols.coap.COAPGet webiopi.protocols.coap.COAPPost webiopi.protocols.coap.COAPPut

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
 

Detailed Description

Definition at line 102 of file coap.py.

Constructor & Destructor Documentation

def webiopi.protocols.coap.COAPMessage.__init__ (   self,
  msg_type = 0,
  code = 0,
  uri = None 
)

Definition at line 109 of file coap.py.

Member Function Documentation

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)
def webiopi.protocols.coap.COAPMessage.appendOption (   self,
  buff,
  lastnumber,
  option,
  data 
)
def webiopi.protocols.coap.COAPMessage.getBytes (   self)
def webiopi.protocols.coap.COAPMessage.getOptionHeaderExtension (   self,
  value 
)
def webiopi.protocols.coap.COAPMessage.getOptionHeaderValue (   self,
  value 
)
def webiopi.protocols.coap.COAPMessage.parseByteArray (   self,
  buff 
)

Member Data Documentation

int webiopi.protocols.coap.COAPMessage.ACK = 2
static

Definition at line 106 of file coap.py.

webiopi.protocols.coap.COAPMessage.code
int webiopi.protocols.coap.COAPMessage.CON = 0
static

Definition at line 104 of file coap.py.

webiopi.protocols.coap.COAPMessage.content_format
webiopi.protocols.coap.COAPMessage.host
webiopi.protocols.coap.COAPMessage.id
int webiopi.protocols.coap.COAPMessage.NON = 1
static

Definition at line 105 of file coap.py.

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
webiopi.protocols.coap.COAPMessage.port
int webiopi.protocols.coap.COAPMessage.RST = 3
static

Definition at line 107 of file coap.py.

webiopi.protocols.coap.COAPMessage.token
webiopi.protocols.coap.COAPMessage.type
list webiopi.protocols.coap.COAPMessage.TYPES = ["CON", "NON", "ACK", "RST"]
static

Definition at line 103 of file coap.py.

Referenced by webiopi.protocols.coap.COAPMessage.__str__().

webiopi.protocols.coap.COAPMessage.uri_path
webiopi.protocols.coap.COAPMessage.version

The documentation for this class was generated from the following file: