Sha256: 6630c3f373c385f8b111ef5f1633094b32233a518d92b865255e7114aada7c64
Contents?: true
Size: 1.55 KB
Versions: 1
Compression:
Stored size: 1.55 KB
Contents
#@fileName <YalgaarHistory.rb> #@brief - <methods> # #Revision Log: # v1.0.1 : Aug 4, 2016 INITIAL OF PROGRAMMER - REVISION DETAIL_1 <- THIS IS THE LATEST REVISION #Description: #YalgaarInitModule contents methods and variables and enum.. # #@bug Known Issues: # 1. ISSUE NAME - NONE # WORKAROUND - NONE #@details Notes: NONE #SLS MAKES NO REPRESENTATION, WARRANTY, OR CONDITION OF #ANY KIND, EXPRESS, IMPLIED, STATUTORY, OR OTHERWISE OR IN #ANY COMMUNICATION WITH YOU, INCLUDING, BUT NOT LIMITED TO, #ANY IMPLIED WARRANTIES OF MERCHANTABILITY, SATISFACTORY #QUALITY, FITNESS FOR ANY PARTICULAR PURPOSE, #NONINFRINGEMENT, AND THEIR EQUIVALENTS. #SLS Propritery and Confidential #@copyright (C) 2016 SLS Corporation, All Rights Reserved. #~ require_relative 'YalgaarInitModule' # Namespace module for YalgaarHistory default variables... #!/usr/bin/env ruby require_relative 'YalgaarInitModule' module YalgaarHistory include YalgaarInit #~ 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> 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
yalgaar-1.0.1 | lib/mqttbridge/YalgaarHistory.rb |