localIP()


Description

This function is used to obtains an IP address of the PHPoC shield for Arduino.

Syntax

Phpoc.localIP()

Parameters

none

Returns

Returns a string represents an IP address. (e.g. 192.168.0.1)

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()
{
}