Initializes the network parameters of PHPoC Shield for Arduino.
Phpoc.begin()
Phpoc.begin(debug_flag)
debug_flag - flags for debugging
Debug Flags | Descriptions |
---|---|
PF_LOG_SPI | debugging flag for SPI communication |
PF_LOG_NET | debugging flag for network communication |
PF_LOG_APP | debugging flag for applications such as sending an E-mail |
1 - on success
0 - on failure
#include <SPI.h>
#include <Phpoc.h>
void setup()
{
Serial.begin(9600);
if(Phpoc.begin() != 0)
Serial.println("Success");
else
Serial.println("Fail");
}
void loop()
{
}