Hello,
I want to use the GattNotification commande like :
GATT_Notification(0, ¬i, FALSE);
but i have an error : No source available for "xdc_runtime_Timestamp_get32__E__mangled__() at ....
I want to precise i worked on a CC2541 before, with the BleBridge project. My cc2541 project worked fine, and now i work on cc2640 and i try to translate the code to send a notification over UART.
I think GattNotification can only used in Stack Project.
I want to use GattNotification in my Application Project. How ?
This is my code :
case ID_COMMANDE_NOTIFY: len_notification = pCmdMsg->pData[2]; len_notification = 2; uint8_t packets_sent = 0; //on s'assure que la file d'attente de la notification est réussie bool send_error = FALSE; //la valeur de retour pour mettre à jour la queue et envoyer ack uint8_t bytes_sent = 0; attHandleValueNoti_t noti; //dummy handle noti.handle = 0x59; //counter uint8_t i = 0; while ((packets_sent < 4) && (len_notification >= 20) && (send_error == FALSE)) { value = &rxdata[0]; //send 20 bytes noti.len = 20; for (i = 0; i < 20; i++) { noti.pValue[i] = rxdata[bytes_sent + i]; } //connection handle hardcoded if (!(GATT_Notification(0, ¬i, FALSE))) //if sucessful { bytes_sent += 20; len_notification -= 20; packets_sent++; } else { send_error = TRUE; } } //last packet if ((packets_sent < 4) && (len_notification > 0) && (send_error == FALSE)) { noti.len = len_notification; for (i = 0; i < len_notification; i++) { noti.pValue[i] = rxdata[bytes_sent + i]; } if (!(GATT_Notification(0, ¬i, FALSE))) //if sucessful { bytes_sent += i; len_notification -= i; //number of byte send } else { send_error = TRUE; } } break;
Thank you.
Best regards,
Steeve