module YalgaarHistory
Public Instance Methods
yalgaarHistory(channel,count,lamda1,lamda2)
click to toggle source
~ include MQTT yalgaarHistory(channel,count,lamda1,lamda2); @brief - <To yalgaarHistory as given length>
@param <Length> : <length for how long uuid generating> DESCRIPTION:<To yalgaarHistory as given length>
# File lib/mqttbridge/YalgaarHistory.rb, line 33 def yalgaarHistory(channel,count,lamda1,lamda2) if @@isConnected==true if channelValidation(channel) topic=@@clientKey+'/'+@@uuid+'/'+channel+'$'+count+'$history' #~ puts topic @@client.subscribe(topic) @@lHistoryCallback=lamda1 else errmesg=showErrCode(YALGAAR_108) lamda2.call(errmesg) end else return YALGAAR_NO_SERVER_CONNECTION end end