Interface NetworkAdapter

  • All Known Implementing Classes:
    MQTT, Rest

    public interface NetworkAdapter
    Provides possibility to send data by network protocol to right destination.
    • Method Detail

      • send

        void send​(List<Data> data)
        Sends data which are wrapped by DataWrappers, there fore in String format.
        data - data to be send
      • getDataWrapper

        DataWrapper getDataWrapper()
        Returns DataWrapper that is used by Device
        instance of DataWrapper
      • setDataWrapper

        void setDataWrapper​(DataWrapper dataWrapper)
        Sets DataWrapper for Device, which allows to transform generated data and important information about its origin to common data structures e.g. JSON, XML, for better manipulation.
        dataWrapper - instance of DataWrapper