added config for serializing attributes
This commit is contained in:
parent
598dcc110c
commit
90e969344a
|
@ -117,8 +117,10 @@ send_packet(mac_callback_t sent, void *ptr)
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
/* here we send the data over SLIP to the radio-chip */
|
/* here we send the data over SLIP to the radio-chip */
|
||||||
|
size = 0;
|
||||||
|
#if SERIALIZE_ATTRIBUTES
|
||||||
size = packetutils_serialize_atts(&buf[3], sizeof(buf) - 3);
|
size = packetutils_serialize_atts(&buf[3], sizeof(buf) - 3);
|
||||||
|
#endif
|
||||||
if(size < 0 || size + packetbuf_totlen() + 3 > sizeof(buf)) {
|
if(size < 0 || size + packetbuf_totlen() + 3 > sizeof(buf)) {
|
||||||
PRINTF("br-rdc: send failed, too large header\n");
|
PRINTF("br-rdc: send failed, too large header\n");
|
||||||
mac_call_sent_callback(sent, ptr, MAC_TX_ERR_FATAL, 1);
|
mac_call_sent_callback(sent, ptr, MAC_TX_ERR_FATAL, 1);
|
||||||
|
|
|
@ -45,6 +45,8 @@
|
||||||
#undef WEBSERVER_CONF_CFS_CONNS
|
#undef WEBSERVER_CONF_CFS_CONNS
|
||||||
#define WEBSERVER_CONF_CFS_CONNS 2
|
#define WEBSERVER_CONF_CFS_CONNS 2
|
||||||
|
|
||||||
|
#define SERIALIZE_ATTRIBUTES 1
|
||||||
|
|
||||||
#define CMD_CONF_OUTPUT border_router_cmd_output
|
#define CMD_CONF_OUTPUT border_router_cmd_output
|
||||||
|
|
||||||
#undef NETSTACK_CONF_RDC
|
#undef NETSTACK_CONF_RDC
|
||||||
|
|
Loading…
Reference in a new issue