module YalgaarPublish

@fileName <YalgaarPublish.rb> @brief - <Publish 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 Publish default variables...

!/usr/bin/env ruby

Public Instance Methods

yalgaarPublish(channel,message) click to toggle source

yalgaarPublish(channel,message); @brief - <To subscribeReturnMessageCallback as given length>

@param <Length> : <length for how long uuid generating> DESCRIPTION:<To yalgaarPublish as given length>

# File lib/mqttbridge/YalgaarPublish.rb, line 31
def yalgaarPublish(channel,message)
        if @@isConnected==true
                 topic=@@clientKey+'/'+channel
                 @@client.publish(topic, message, retain=false)
        else
                return YALGAAR_NO_SERVER_CONNECTION
        end    
end