How to send data more than 20 bytes?

4 posts / 0 new
Last post
Zheng Li
Offline
Last seen:5 years 2 months ago
加入:2015-06-17 06:58
How to send data more than 20 bytes?

I use dialog as a "proximity reporter". I want to send data from dialog to phone.
Based on sample128 code, I modify the `val` member of `struct xxx_val_ind` & `struct xxx_upd_char2_req` & `struct xxx_receiver_val` seems like:

struct myapp_receiver_val
{
/// Connection handle
uint16_t conhdl;
/// Value
uint8_t val[30];
};

The question is, it sends 13 bytes at most. How to send more data in one time?
Could you send me some documents or codes for this issue?
Thank you!

我希望尽快获得帮助,在这里提case相当不便,能否提供技术支持的联系方式或其他更快捷的途径?多谢!

Device:
summer20100514
Offline
Last seen:4 years 2 months ago
Guru
加入:2014-12-30 05:01
你好,你查nge the

你好,你查nge the corresponding length in attmdb_add_attribute() and attmdb_att_set_value() as well ?

MT_dialog
Offline
Last seen:1 hour 26 min ago
工作人员
加入:2015-06-08 11:34
Hi Zheng Li

Hi Zheng Li

Have you changed the values in the sample128_create_db_req_handler() function to the new size? Please try to run the custom profile and change in sample128.h the variable typedef unsigned char my_new_t[8]; into typedef unsigned char my_new_t[30]; to have a quick look if it works for you.

Thanks MT_dialog.

Zheng Li
Offline
Last seen:5 years 2 months ago
加入:2015-06-17 06:58
Hi summer20100514, MT_dialog

Hi summer20100514, MT_dialog
You are right, I missed a variable to modify. Now problem solved. Thank you!

Topic locked