This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Some lib_aci functions should use const pointers I think

I'm using the Arduino SDK but I don't think that should matter for this comment. I think a small change to some of the lib_aci functions would make it easier to use them. Functions that take a buffer of data and don't change the buffer should declare the buffer pointer "const". That way we can pass static/const buffers in without having to add kludge casts to the calls.

In particular I think the following parameters should be const:

  • value parameter to lib_aci_set_local_data
  • value parameter to lib_aci_send_data
  • dynamic_data parameter to lib_aci_write_dynamic_data
  • key parameter to lib_aci_set_key
  • message_data parameter to lib_aci_echo_msg
Parents Reply Children
No Data
Related