| Low-Power Border Router

- Main Page
- Packages
- Classes

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Public Attributes

# Lowpan.Lowpan.Lowpan Class Reference

Conversion between IPv6 and LoWPAN packets. More...

List of all members.

## Public Member Functions
def | __init__
| Initializes this object.
def | ipv6_string_to_lowpan_string
| Compacts an IPv6 packet into a 6LoWPAN packet.
def | lowpan_string_to_ipv6_string
| Compacts an IPv6 packet into a 6LoWPAN packet.
## Public Attributes
| username
| converter
| packetCompressor
| printer
| log

## Detailed Description

Conversion between IPv6 and LoWPAN packets.

## Constructor & Destructor Documentation

def Lowpan.Lowpan.Lowpan.__init__ | ( |  | self,
|  |  | username,
|  |  | prefix_hexString
| ) |  |

Initializes this object.

Parameters:

  username | The name of the user this instance works for.
  prefix_hexString | The IPv6 prefix of the network, written as 'aaaa:bbbb:cccc:dddd'.

## Member Function Documentation

def Lowpan.Lowpan.Lowpan.ipv6_string_to_lowpan_string | ( |  | self,
|  |  | ipv6_string
| ) |  |

Compacts an IPv6 packet into a 6LoWPAN packet.

Parameters:

  ipv6_string | The IPv6 packet to be compacted.

Returns:
  The computed 6LoWPAN packet.

def Lowpan.Lowpan.Lowpan.lowpan_string_to_ipv6_string | ( |  | self,
|  |  | lowpan_string,
|  |  | macSrcAddrS
| ) |  |

Compacts an IPv6 packet into a 6LoWPAN packet.

Parameters:

  lowpan_string | The 6LoWPAN packet.
  macSrcAddrS | The MAC address of the mote the packet originated from.

Returns:
  The computed IPv6 packet.

## Member Data Documentation

Lowpan.Lowpan.Lowpan.username

Lowpan.Lowpan.Lowpan.converter

Lowpan.Lowpan.Lowpan.packetCompressor

Lowpan.Lowpan.Lowpan.printer

Lowpan.Lowpan.Lowpan.log