Commit Graph

56 Commits

Author SHA1 Message Date
skarg a8ad8f4d5c Changed error code from SERVICE/NO_SPACE_FOR_OBJECT to ABORT/SEGMENTATION_NOT_SUPPORTED to be consistent with the BACnet standard. Thank you, lo pe! [bugs:#41] 2016-08-12 20:45:08 +00:00
skarg f52fc092e5 Added additional BACnet demo object API (header files) for various properties. Updated demo objects to compile cleanly with the updated API. 2013-05-22 17:42:48 +00:00
skarg ba3242aafd indented using indent.sh script to get uniform looking code for release 2013-03-13 22:17:13 +00:00
skarg d5fd900780 cleaned up compiler warnings 2012-09-23 12:48:41 +00:00
skarg 7578b4ef06 Added check in each example object WriteProperty handler to pass test:
9.22.2.1 Writing Non-Array Properties with an Array Index
Thank you Kamalathas!
2012-07-09 19:49:27 +00:00
skarg 180f09cb08 Removed the optional properties from example Analog Output in order to test ReadPropertyMultiple using OPTIONAL property. 2012-05-18 23:12:11 +00:00
skarg 48e2c60ce2 indented to standard from script 2012-05-13 15:07:12 +00:00
skarg a8280dda95 Added CharacterString Value object example and unit tests, and added to demo/server example application.
Added Multi-state Value object example and unit tests, and added to demo/server example application.
Fixed Analog Input object, Analog Output object, Analog Value object, Device object, Multi-state Input object, Multi-state Output object examples to return correct error codes for WriteProperty service (per BACnet 135.1-2009-9.22.2.6).
Fixed top level ReadProperty and WriteProperty handlers in Device object to return correct error codes (per BACnet 135.1-2009-9.22.2.5)
2012-03-22 18:22:42 +00:00
skarg 3e1cb1847f Indented project. 2011-08-17 02:27:11 +00:00
skarg deab12a5e1 Changed WhoHas and I-Have to use CharacterString instead of forcing ANSI X34 and C Strings. Affected all demos and ports object name, so I changed the object name function name to make sure it was noticed. 2011-03-24 16:53:02 +00:00
skarg 2f5d6fbaa1 Updated unit tests for objects and services, and corrected some portability problems. Thanks, Sergei! Didn't fix mstp or load control unit test results. 2010-12-27 00:04:38 +00:00
skarg 2a0bf4926a Performed standard indent script indent.sh on project files. 2010-12-15 19:02:40 +00:00
skarg e9249b5b5e Added test for a decoding problem where the stack is unable to decode something, and retrofitted into WriteProperty for each of the demo objects by returning an Error, Out of Range. 2010-10-12 01:17:50 +00:00
skarg 9569f2c536 Fixed EOL and performed standard indentation. 2010-09-16 22:00:47 +00:00
skarg b769dcbe1d Indented. 2010-08-18 00:11:35 +00:00
skarg 6c9ef7211d Fixed indent script, and indented files. 2010-07-19 23:19:54 +00:00
petermcs 61bb34d726 2nd pass at changing the error/reject/abort status reporting to improve BTL test compliance. ReadProperty fully done for core and demo objects. Will tackle other services next. 2010-06-07 15:52:33 +00:00
skarg 710cfccfef Indented using indent script. 2010-05-04 21:06:26 +00:00
skarg d7ec61eb21 Moved constants defining the number of each object back into the source files for the demo objects since the header files are currently common to all. 2010-02-11 23:14:53 +00:00
skarg f0863c0238 Refactored RP, WP, RPM to reduce coupling with objects for Linux and Win32 ports. 2010-02-10 16:27:31 +00:00
petermcs 634237cf43 Simplified write property code using new validation helper functions in h_wp.c. 2010-02-04 16:22:12 +00:00
petermcs bfa8936bf5 Changed a bunch of debug and information printfs so that they have a better chance of working on systems where int is smaller than 32 bits also fixed the signed/unsigned type of some to match the type of the arguments. 2010-01-26 21:30:38 +00:00
skarg edc7c6c577 Added test for array options on RP and RPM to all object properties that are not arrays. 2009-11-05 15:39:46 +00:00
skarg c04e69da8c Fixed EOL, indent. 2009-10-24 17:02:59 +00:00
skarg a28760bf56 Added init functions to object header files. Finished refactoring the demo read and write property handlers to use function tables. 2009-08-23 03:26:30 +00:00
skarg 2497c19aaa Corrected Analog Output demo object priority parameter consistency. Thank you piotrek ( bacpack )! Sourceforge.net bug ID: 2782204. 2009-04-27 15:42:50 +00:00
skarg 1477603af6 indented. 2007-11-29 16:39:48 +00:00
skarg 411d6c1b24 Indented. 2007-11-29 15:56:53 +00:00
skarg 3d6158443c Changed API: encode_tagged is now encode_application since we are encoding an application tag. 2007-10-13 12:26:16 +00:00
skarg 30c186d730 Corrected ReadPropertyMultiple handler. Tested using VTS with demo/server running under linux. 2007-07-19 18:27:03 +00:00
skarg 5b07b5b920 Integrated ReadPropertyMultiple with the demo/server application. Compiles, but untested. 2007-07-19 00:21:38 +00:00
skarg d098dfcd4c 2007-06-15 22:48:46 +00:00
skarg 9069c939da Fixing indent oops which removed the contents of all these files. 2007-06-14 05:33:15 +00:00
skarg ea4863ca25 Indented. 2007-06-14 05:14:26 +00:00
skarg 076ee5f3ca Changed priority parameter to unsigned since we don't need to use negative values and were not checking for negative to be invalid. 2007-05-22 13:44:07 +00:00
skarg befc997533 Reverted change of sprintf %u to %lu since gcc defines uint32_t as unsigned int rather than long unsigned int like the pic. I will just add a note to the readme or demo projects for the PIC. 2007-03-27 13:44:48 +00:00
skarg b68f1a0f8e Changed sprintf from %u or %d to %lu to fix problem in PIC ports. 2007-03-27 11:20:39 +00:00
skarg b41c124dcc Corrected Analog Output setting of value which had priority off-by-one error. 2007-02-27 22:17:34 +00:00
skarg 1386b41f2d Ran the indent and comment script to standardize the source files. 2007-02-23 02:14:50 +00:00
skarg b03a5416e6 Corrected warnings generated from the Visual C++ 6.0 compiler. Updated the Visual C++ 6.0 ports demo project. Updated the Borland C++ ports demo project. 2007-02-13 20:41:22 +00:00
skarg 0f43f3d227 Added functions to the analog output demo object to get and set the Present_Value. 2007-02-09 16:47:59 +00:00
skarg bfc82bd07d Changed array element 0 to be more clear in the code. 2007-02-08 21:57:47 +00:00
skarg 71d59fbb8b Standardized the comments and indentation using the comment.sh and indent.sh scripts. 2007-02-02 02:25:15 +00:00
skarg c9e1382044 Modified WriteProperty handler to handle context-specific, application, and constructed data. Fixed up all the demos to use new API. 2007-01-18 21:22:40 +00:00
skarg b36225149c Corrected index offset for priority array when read one index at a time. 2007-01-15 16:10:12 +00:00
skarg 3506c8f95c Corrected priority array for read property when elements are read individually. 2007-01-15 15:55:44 +00:00
skarg f7d549dec6 Cleaned up warnings from Visual C++ 6.0 compile by adding casts. 2006-12-12 15:45:01 +00:00
skarg b429f94695 indented. 2006-03-23 15:46:15 +00:00
skarg 7e18086c73 Added Binary Output objects to the demos. 2006-03-23 15:43:15 +00:00
skarg dee63d45bc Changed all the C++ comments to C comments using comment.sh script. 2006-02-19 01:32:09 +00:00