func NewWaterMeterapi(gateway *gateway.Gateway) *WaterMeterapi {
	return &WaterMeterapi{
		gw: gateway,
	}
}
NewWaterMeterapi creates a new ApplicationAPI.
package devapi
import (
	"encoding/json"
	"golang.org/x/net/context"
	sjson "github.com/bitly/go-simplejson"
	log "github.com/sirupsen/logrus"
	pb "github.com/yjiong/iotgateway/api"
	"github.com/yjiong/iotgateway/internal/device"
	"github.com/yjiong/iotgateway/internal/gateway"
)
type WaterMeterapi struct {
	gw *gateway.Gateway
}