Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The Barton Reference App provides a CLI for interactively interfacing with Barton Device Service.
    • Interacting with Barton from your Code

      • Setup and Initialization
        • Include device-service-client.h
        • Create initialization parameters with b_device_service_initialize_params_container_new
        • Configure storage location with b_device_service_initialize_params_container_set_storage_dir
        • For Matter support, provide additional configuration:
          • b_device_service_initialize_params_container_set_matter_storage_dir
          • b_device_service_initialize_params_container_set_matter_attestation_trust_store_dir
          • b_device_service_initialize_params_container_set_network_credentials_provider
      • Client Creation and Startup
        • Create the client instance with b_device_service_client_new
        • Initialize the connection with b_device_service_client_start
      • Event Registration
        • Connect to system events using g_signal_connect
        • Common signals include:
          • Discovery events (DISCOVERY_STARTED, DISCOVERY_STOPPED)
          • Device lifecycle events (DEVICE_DISCOVERED, DEVICE_ADDED)
          • Endpoint events (ENDPOINT_ADDED)
          • Status events (DEVICE_DISCOVERY_COMPLETED, DEVICE_DISCOVERY_FAILED)
      • Device Interaction
        • Commission new devices with b_device_service_client_commission_device
        • Control devices by writing to resources with b_device_service_client_write_resource
        • Read device state with b_device_service_client_get_resource_by_uri
        • Execute device functions with b_device_service_client_execute_resource



IoT Technology overview

  • TBD

References