This function is used to obtains an IP address of the PHPoC shield for Arduino.
Phpoc.localIP()
none
Returns a string represents an IP address. (e.g. 192.168.0.1)
#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()
{
}