STS2 MBED lycee victor hugo Besancon
Dependencies: EthernetInterface mbed-rtos mbed
main.cpp
- Committer:
- schnf30
- Date:
- 2015-03-24
- Revision:
- 0:ce84113bb913
File content as of revision 0:ce84113bb913:
#include "mbed.h" #include "EthernetInterface.h" static const char* mbedIp = "192.168.1.102"; //IP static const char* mbedMask = "255.255.255.0"; // Mask static const char* mbedGateway = "192.168.1.1"; //Gateway int main() { EthernetInterface eth; eth.init(mbedIp,mbedMask,mbedGateway); //Use these parameters for static IP eth.connect(); pc.printf("Connected! IP Address is %s\n", eth.getIPAddress()); }