1 2 3 4 Previous Next 54 Replies Latest reply on Jun 27, 2016 10:17 PM by joanyfn_1569981

    about PSoc 4 BLE(Technical Support)

    joanyfn_1569981

      Hi,

         

      I am sending data from android device to PSoc.By using

         

      offdelayData[0] = wrReqParam->handleValPair.value.val[0];

         

      offdelayData[1] = wrReqParam->handleValPair.value.val[1];
       offdelayData[2] = wrReqParam->handleValPair.value.val[2];
        offdelayData[3] = wrReqParam->handleValPair.value.val[3];
          offdelayData[4] = wrReqParam->handleValPair.value.val[4];
            offdelayData[5] = wrReqParam->handleValPair.value.val[5];

         

      I get six bytes from device one by one.

         

      In order to concatenate I converted each bytes to character by using

         

      utoa(offdelayData[0], t0,10 );
       utoa(offdelayData[1],t1,10 );
      utoa(offdelayData[2],t2,10 );
      utoa(offdelayData[3],t3,10);
      utoa(offdelayData[4],t4,10);
      utoa(offdelayData[5],t5,10 );

         

      and then concatenated to "t0"

         

      strcat(t0,t1);
      strcat(t0,t2);
      strcat(t0,t3);
       strcat(t0,t4);
      strcat(t0,t5);

         

      then initialised to char *t=t0;

         

      then converted to integer

         

       OffDelay=strtoul(t, &ptr1, 10);

         

      While executing it is advertising but not received in Android device.

         

      Please Give suggestions.

         

      By Joany.

        1 2 3 4 Previous Next