Jump to content
43oh

ansh

Members
  • Content Count

    12
  • Joined

  • Last visited

Posts posted by ansh

  1. Hi,

    I am trying to send data through UART from MSP430G2553 to sensorTag CC2650 and then through Bluetooth we are seeong value on BLESCANNER app we are using SPPBLE server program but we are not getting any data on the app .Can any one help me out as i am still stuck on it..

  2. @@cubeberg i have attached my sender code from MSP430G2553 and receiver code for CC3200 

    SENDER MSP430 :-

     

    #define LED RED_LED
     
     
    char ch;
    void setup()
    {
      
      Serial.begin(9600);
      // put your setup code here, to run once:
      
    }
     
    void loop()
    {
      Serial.write('c');
      delay(1000);
      
      
      // put your main code here, to run repeatedly:
      
    }
     
     
    RECEIVER CC3200 :-
     
    #define LED RED_LED
     
    char c;
    void setup()
    {
      Serial.begin(9600);
      Serial1.begin(9600);
      pinMode(LED,OUTPUT);
      pinMode(GREEN_LED,INPUT);
    }
     
    void loop()
    {
      if(Serial.available()>0)
      {
        c=Serial.read();
        Serial1.print©;
        if(c=='Y')
        {
          digitalWrite(LED,HIGH);
        }
        else if(c=='y')
        digitalWrite(LED,LOW);
      }
    }
     please check is this correct because i am not getting the output..
×
×
  • Create New...