Home | History | Annotate | Download | only in plugins

Lines Matching full:atval

64 	uint8_t atval[256];
79 att_put_u16(BATTERY_STATE_SVC_UUID, &atval[0]);
80 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 2);
84 atval[0] = ATT_CHAR_PROPER_READ;
85 att_put_u16(h + 1, &atval[1]);
86 att_put_u16(BATTERY_STATE_UUID, &atval[3]);
87 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
91 atval[0] = 0x04;
92 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 1);
96 atval[0] = 0x00;
97 atval[1] = 0x00;
98 attrib_db_add(h++, &uuid, ATT_NONE, ATT_AUTHENTICATION, atval, 2);
117 uint8_t atval[256];
134 att_put_u16(THERM_HUMIDITY_SVC_UUID, &atval[0]);
135 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 2);
141 att_put_u16(manuf1[0], &atval[0]);
142 att_put_u16(manuf1[1], &atval[2]);
143 att_put_u16(MANUFACTURER_SVC_UUID, &atval[4]);
144 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval,
150 att_put_u16(manuf2[0], &atval[0]);
151 att_put_u16(manuf2[1], &atval[2]);
152 att_put_u16(VENDOR_SPECIFIC_SVC_UUID, &atval[4]);
153 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval,
159 atval[0] = ATT_CHAR_PROPER_READ;
160 att_put_u16(h + 1, &atval[1]);
161 att_put_u16(TEMPERATURE_UUID, &atval[3]);
162 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
166 atval[0] = 0x8A;
167 atval[1] = 0x02;
168 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 2);
172 atval[0] = 0x0E;
173 atval[1] = 0xFE;
174 att_put_u16(FMT_CELSIUS_UUID, &atval[2]);
175 atval[4] = 0x01;
176 att_put_u16(FMT_OUTSIDE_UUID, &atval[5]);
177 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 7);
182 strncpy((char *) atval, desc_out_temp, len);
183 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, len);
187 atval[0] = ATT_CHAR_PROPER_READ;
188 att_put_u16(h + 1, &atval[1]);
189 att_put_u16(RELATIVE_HUMIDITY_UUID, &atval[3]);
190 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
194 atval[0] = 0x27;
195 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 1);
199 atval[0] = 0x04;
200 atval[1] = 0x00;
201 att_put_u16(FMT_PERCENT_UUID, &atval[2]);
202 att_put_u16(BLUETOOTH_SIG_UUID, &atval[4]);
203 att_put_u16(FMT_OUTSIDE_UUID, &atval[6]);
204 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 8);
209 strncpy((char *) atval, desc_out_hum, len);
210 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, len);
227 uint8_t atval[256];
243 att_put_u16(MANUFACTURER_SVC_UUID, &atval[0]);
244 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 2);
248 atval[0] = ATT_CHAR_PROPER_READ;
249 att_put_u16(h + 1, &atval[1]);
250 att_put_u16(MANUFACTURER_NAME_UUID, &atval[3]);
251 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
256 strncpy((char *) atval, manufacturer_name1, len);
257 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, len);
261 atval[0] = ATT_CHAR_PROPER_READ;
262 att_put_u16(h + 1, &atval[1]);
263 att_put_u16(MANUFACTURER_SERIAL_UUID, &atval[3]);
264 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
269 strncpy((char *) atval, serial1, len);
270 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, len);
284 uint8_t atval[256];
300 att_put_u16(MANUFACTURER_SVC_UUID, &atval[0]);
301 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 2);
305 atval[0] = ATT_CHAR_PROPER_READ;
306 att_put_u16(h + 1, &atval[1]);
307 att_put_u16(MANUFACTURER_NAME_UUID, &atval[3]);
308 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
313 strncpy((char *) atval, manufacturer_name2, len);
314 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, len);
318 atval[0] = ATT_CHAR_PROPER_READ;
319 att_put_u16(h + 1, &atval[1]);
320 att_put_u16(MANUFACTURER_SERIAL_UUID, &atval[3]);
321 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
326 strncpy((char *) atval, serial2, len);
327 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, len);
339 uint8_t atval[256];
354 att_put_u16(VENDOR_SPECIFIC_SVC_UUID, &atval[0]);
355 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 2);
359 atval[0] = ATT_CHAR_PROPER_READ;
360 att_put_u16(h + 1, &atval[1]);
361 att_put_u16(VENDOR_SPECIFIC_TYPE_UUID, &atval[3]);
362 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 5);
366 atval[0] = 0x56;
367 atval[1] = 0x65;
368 atval[2] = 0x6E;
369 atval[3] = 0x64;
370 atval[4] = 0x6F;
371 atval[5] = 0x72;
372 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 6);
393 uint8_t atval[256];
412 memcpy(atval, &prim_weight_uuid_btorder, 16);
413 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 16);
418 att_put_u16(vendor[0], &atval[0]);
419 att_put_u16(vendor[1], &atval[2]);
420 att_put_u16(MANUFACTURER_SVC_UUID, &atval[4]);
421 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval,
427 atval[0] = ATT_CHAR_PROPER_READ;
428 att_put_u16(h + 1, &atval[1]);
429 memcpy(&atval[3], &char_weight_uuid_btorder, 16);
430 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 19);
434 atval[0] = 0x82;
435 atval[1] = 0x55;
436 atval[2] = 0x00;
437 atval[3] = 0x00;
438 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 4);
442 atval[0] = 0x08;
443 atval[1] = 0xFD;
444 att_put_u16(FMT_KILOGRAM_UUID, &atval[2]);
445 att_put_u16(BLUETOOTH_SIG_UUID, &atval[4]);
446 att_put_u16(FMT_HANGING_UUID, &atval[6]);
447 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, 8);
452 strncpy((char *) atval, desc_weight, len);
453 attrib_db_add(h++, &uuid, ATT_NONE, ATT_NOT_PERMITTED, atval, len);