Uploaded image for project: 'Edgent'
  1. Edgent
  2. EDGENT-99

Improve documentation for IotfDevice

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Connectors
    • None

    Description

      It's not at all clear form the docs what needs to be passed to the constructor to create the device.

      It's either a device.cfg file that looks like the one in the scripts/connectors/iotf

      or a set of properties

      https://docs.internetofthings.ibmcloud.com/devices/libraries/java.html

      //Provide the device specific data, as well as Auth-key and token using Properties class
      Properties options = new Properties();

      options.setProperty("org", "uguhsp");
      options.setProperty("type", "iotsample-arduino");
      options.setProperty("id", "00aabbccde03");
      options.setProperty("auth-method", "token");
      options.setProperty("auth-token", "AUTH TOKEN FOR DEVICE");

      Attachments

        Activity

          People

            djd Daniel John Debrunner
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: