12.07.2015 Views

waspmote-gsm-gprs-pr.. - Libelium

waspmote-gsm-gprs-pr.. - Libelium

waspmote-gsm-gprs-pr.. - Libelium

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

TCP and UDP connections7.9. Getting IP direction from an URLIt gets the IP direction from a URL using DNS servers. Stores the IP direction in ‘buffer_GPRS’.It returns ‘1’ on success, ‘0’ if error.Example of use:{GPRS_Pro.getIPfromDNS(“www.libelium.com”); // Gets IP direction from <strong>Libelium</strong>’s web site}7.10. Enabling/disabling to adds a IP headIt enables/disables to add an IP head at the beginning of a package received.It returns ‘1’ on success, ‘0’ if error.Example of use:{GPRS_Pro.IPHeader(ENABLE);}7.11. Setting autosending timerIt sets a timer when module is sending data. Time is in seconds from 0 to 100.It returns ‘1’ on success, ‘0’ if error.Example of use:{}GPRS_Pro.SetAutoSendingTimer(DISABLE);GPRS_Pro.SetAutoSendingTimer(ENABLE, 5);// Sets timer at 5 seconds7.12. Enabling/disabling to show remote IP address and port whenreceived dataIt enables or disables to show remote IP address and port when received data.It returns ‘1’ on success, ‘0’ if error.Example of use:{GPRS_Pro.ShowRemoteIP(DISABLE);}-25- v0.5

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!