Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsConnectionOpen (0.06 sec)

  1. internal/event/target/mqtt.go

    	if err := target.init(); err != nil {
    		return false, err
    	}
    	return target.isActive()
    }
    
    func (target *MQTTTarget) isActive() (bool, error) {
    	if !target.client.IsConnectionOpen() {
    		return false, store.ErrNotConnected
    	}
    	return true, nil
    }
    
    // send - sends an event to the mqtt.
    func (target *MQTTTarget) send(eventData event.Event) error {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Sep 06 23:06:30 UTC 2024
    - 8.2K bytes
    - Viewed (0)
Back to top