MIGRATION 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ===================================
  2. Migration notes from the 1.2 series
  3. ===================================
  4. Init
  5. ====
  6. modbus_init_tcp requires a third new argument, the port number.
  7. modbus_init_tcp(modbus_param_t *mb_param, char *ip_address, int port)
  8. Set the port to MODBUS_TCP_DEFAULT_PORT to use the default one
  9. (502). It's convenient to use a port number greater than or equal to
  10. 1024 because it's not necessary to be root to use this port number.
  11. Pointers of data
  12. ================
  13. The coil and input status are now stored in an array of type uint8_t
  14. (in 1.2.X series, array of type int was used). So now, you need to
  15. pass a pointer of type uint8_t to use read_coil_status(), for example.
  16. The holding and input registers are now stored in an array of type
  17. uint16_t.
  18. These changes reduce the memory consumption.
  19. New functions
  20. =============
  21. report_slave_id
  22. modbus_set_error_handling
  23. modbus_mapping_new
  24. modbus_mapping_free
  25. modbus_init_listen_tcp
  26. modbus_listen
  27. modbus_manage_query
  28. get_slave_query_tcp
  29. set_bits_from_byte
  30. set_bits_from_bytes
  31. get_byte_from_bits
  32. Read modbus.h for more informations.