This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2540透传问题

Other Parts Discussed in Thread: CC2540

我想用CC2540做简单的双向传输,用SimpleBLECentral传20个固定字符串(例如abcdg3d2i0idku576dbn)

SimpleBLEPeripheral收到abcdg3d2i0idku576dbn后,也回传20个固定字符串

 

所以我在SimpleBLECentral修改了两个地方

static char *simpleBLECharVal = "abcdg3d2i0idku576dbn";

req.value[0] = *simpleBLECharVal[]; -->这个在Do a write

发现这样做还是达不到我要的效果,请问传输与接收string的方式有没有可以参考呢?