localIP()


Description

Returns the IP address of the device.

Syntax

Phpoc.localIP()

Parameters

none

Returns

the IP address of the device (IPAdress).

Example

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

void setup()
{
  Serial.begin(9600);

  if(Phpoc.begin() == 0)
  {
    Serial.println("Failed to initialize Network");
    for(;;)
      ;
  }
  Serial.println(Phpoc.localIP());
}

void loop()
{
}