localIP6()


Description

This function is used to obtains a link local IPv6 address of the PHPoC shield for Arduino.

Syntax

Phpoc.localIP6()

Parameters

none

Returns

Returns a string represents a link local IPv6 address. (e.g. fe80:db8:131f::140b)

Example

#include <SPI.h>
#include <Phpoc.h>

void setup(){
  Serial.begin(9600);
  if(Phpoc.begin() == 0){
    Serial.println("Failed to initialize Network");
    for(;;)
      ;
  }
  Phpoc.beginIP6();
  Serial.println(Phpoc.localIP6());
}

void loop(){
}