W7500 as a Receiver

Dependencies:   mbed

main.cpp

Committer:
HarshaDRAGNEEL
Date:
2018-06-07
Revision:
0:9d2e7220cfeb

File content as of revision 0:9d2e7220cfeb:

#include "mbed.h"
 
DigitalOut myled(LED1);


Serial pc(USBTX, USBRX);
//void baud(int baudrate)
//{ 
   Serial a(D1,D0);
  // a.baud(baudrate);
//}

int main() {
    char c;
  //  baud(9600);
while(1)
{
   
   c = a.getc();
   //pc.printf("%c",c);  
   //c = pc.getc(); 
   pc.printf("%d",c); 
   //pc.printf("hello\n");   
}
}