Interface Timedata

    • Method Detail

      • write

        void write​(java.lang.String edgeId,
                   com.google.common.collect.TreeBasedTable<java.lang.Long,​ChannelAddress,​com.google.gson.JsonElement> data)
            throws OpenemsException
        Sends the data points to the Timedata service.
        Parameters:
        edgeId - The unique Edge-ID
        data - Table of timestamp (epoch in milliseconds), Channel-Address and the Channel value as JsonElement. Sorted by timestamp.
        Throws:
        OpenemsException
      • getChannelValue

        java.util.Optional<com.google.gson.JsonElement> getChannelValue​(java.lang.String edgeId,
                                                                        ChannelAddress channelAddress)
        Gets the latest value for the given ChannelAddress.
        Parameters:
        edgeId - The unique Edge-ID
        channelAddress - The Channel-Address
        Returns: