/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ts.mqttsn;

/**
 *
 * @author loki.chuang
 */
public interface IMqttSnClient
{
    public void ClientStart();
    public void ClientStop();
}

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ts.mqttsn;

/**
 *
 * @author loki.chuang
 */
public interface IMqttSnClient
{
    public void ClientStart();
    public void ClientStop();
    
    public void Publish(String topic, byte[] payload,int qos, boolean retained);
    public void Subscribe(String topicFilter, int qos);
    
}

Add publish and subscribe method to IMqttSnClient