Interface UserProperty


  • public interface UserProperty
    Interface for parsing mqtt user properties in adapter configurations. The implementation in the HiveMQ Edge code will be used to automatically create instances during conversion:

    \\@JsonProperty("propertyName") \\@ModuleConfigField(title = "Property Name", description = "Name of the associated property") private @Nullable String propertyName = null;

    \\@JsonProperty("propertyValue") \\@ModuleConfigField(title = "Property Value", description = "Value of the associated property") private @Nullable String propertyValue = null;

    • Method Detail

      • setName

        void setName​(@NotNull
                     @NotNull String propertyName)
        Parameters:
        propertyName - the name for this user property. The same name may be used for multiple user properties of a MQTT publish.
      • setValue

        void setValue​(@NotNull
                      @NotNull String propertyValue)
        Parameters:
        propertyValue - the value of the user property.