This function is used to obtains a global IPv6 address of the PHPoC shield for Arduino.
Phpoc.globalIP6()
none
Returns a string represents a global IPv6 address. (e.g. 2001:db8:131f::140b)
#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.globalIP6());
}
void loop(){
}