Add facility to adjust the services and and other features supported via config.h. This is to reduce code size in embedded builds where the compiler does not do a great job in removing functions that are never called. This is particularly useful for simple server only applications where decoding of response packets and encoding of requests are not required for example.
Also added possibility for RMP of encoding large items in-line in the response packet so that the object RP handlers know how much space they really have without the need for a full APDU buffer being maintained.
This commit is contained in:
@@ -866,6 +866,8 @@ int encode_application_object_id(
|
||||
return len;
|
||||
}
|
||||
|
||||
#if BACNET_USE_OCTETSTRING
|
||||
|
||||
/* from clause 20.2.8 Encoding of an Octet String Value */
|
||||
/* returns the number of apdu bytes consumed */
|
||||
int encode_octet_string(
|
||||
@@ -981,6 +983,7 @@ int decode_context_octet_string(
|
||||
|
||||
return len;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* from clause 20.2.9 Encoding of a Character String Value */
|
||||
/* returns the number of apdu bytes consumed */
|
||||
@@ -1305,6 +1308,7 @@ int encode_context_enumerated(
|
||||
return len;
|
||||
}
|
||||
|
||||
#if BACNET_USE_SIGNED
|
||||
/* from clause 20.2.5 Encoding of a Signed Integer Value */
|
||||
/* and 20.2.1 General Rules for Encoding BACnet Tags */
|
||||
/* returns the number of apdu bytes consumed */
|
||||
@@ -1425,6 +1429,7 @@ int encode_context_signed(
|
||||
|
||||
return len;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* from clause 20.2.6 Encoding of a Real Number Value */
|
||||
/* and 20.2.1 General Rules for Encoding BACnet Tags */
|
||||
@@ -1457,6 +1462,7 @@ int encode_context_real(
|
||||
return len;
|
||||
}
|
||||
|
||||
#if BACNET_USE_DOUBLE
|
||||
/* from clause 20.2.7 Encoding of a Double Precision Real Number Value */
|
||||
/* and 20.2.1 General Rules for Encoding BACnet Tags */
|
||||
/* returns the number of apdu bytes consumed */
|
||||
@@ -1489,6 +1495,7 @@ int encode_context_double(
|
||||
|
||||
return len;
|
||||
}
|
||||
#endif
|
||||
|
||||
/* from clause 20.2.13 Encoding of a Time Value */
|
||||
/* and 20.2.1 General Rules for Encoding BACnet Tags */
|
||||
|
||||
Reference in New Issue
Block a user