- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hello there i want to send data using CY8CKIT-042-BLE using one board. and using another board i want to receive. can you help me how to do it??
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the central project, we check if the advReport matches with that of the Peripheral. If so, connect automatically.
case CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT:
if((advReport->eventType == CYBLE_GAPC_SCAN_RSP) && (advReport->data[1] == 0xff) \
&& (advReport->data[2] == 0x31) && (advReport->data[3] == 0x01) \
&& (advReport->data[4] == 0x3b) && (advReport->data[5] == 0x04))
{
peerDeviceFound = true;
........
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may freely use the second board just the same as the PRoC dongle, there is no deep difference between them from the view of BLE connection.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have one question
here central connects automatically when peripheral advertises. how such thing happens??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the central project, we check if the advReport matches with that of the Peripheral. If so, connect automatically.
case CYBLE_EVT_GAPC_SCAN_PROGRESS_RESULT:
if((advReport->eventType == CYBLE_GAPC_SCAN_RSP) && (advReport->data[1] == 0xff) \
&& (advReport->data[2] == 0x31) && (advReport->data[3] == 0x01) \
&& (advReport->data[4] == 0x3b) && (advReport->data[5] == 0x04))
{
peerDeviceFound = true;
........
}