![](/media/cache/profiles/8cf40e328089249cf77075692aa0c09b.jpg.50x50_q85.jpg)
Thermometer connected to internet
Dependencies: BME280 EthernetInterface FXOS8700Q HTTPClient-wolfSSL NTPClient NetworkAPI OAuth4Tw TSL2561_I2C eCompass_FPU_Lib mbed-rtos mbed wolfSSL
Fork of TCP_Server_Example by
main.cpp
- Committer:
- NegativeBlack
- Date:
- 2012-07-17
- Revision:
- 6:33b57f606f2b
- Parent:
- 5:01f6c3e112af
- Child:
- 8:d55cac25e637
File content as of revision 6:33b57f606f2b:
#include "mbed.h" #include "EthernetInterface.h" #include "NetworkAPI/ip/address.hpp" int main() { EthernetInterface interface; interface.init(); interface.connect(); printf("IP Address is %s\n\r", interface.getIPAddress()); network::ip::Address address; address.fromHostname("www.google.nl"); printf("Network address %s\n", address.toString().c_str()); return 0; }