Step 8: Adding Bells and Whistles
This step does not exist yet — you can just go ahead and create it yourself.
You can enhance the access control demo in a myriad ways. We will just point out additional facilities offered by the AGG library.
Note that...
- You can always stop the library and free up buffer memory by calling agg_stop(). When your application does this, it will get callback_agg_buff_released() invoked.
- You can use agg_get_connection_state() to poll the AGG library for it connection state. You can then display the state on the LCD screen (if your device has it), using LEDs, or in some other way.
- Callback_agg_error() provides a unified place to respond to errors generated by the AGG library.
- Some hardware projects require precise timekeeping (don't we know this!). If you are not satisfied with the internal RTC of your device (such as the EM1000), or you are using a device that has no RTC (EM500) then you can always connect your own RTC chip and write your own RTC routines:
- Enable (check) Using Custom RTC in the AggreGate configurator.
- Add the Callback_agg_rtc_sg() procedure to your code.