// New instantiates the CoAP adapter implementation.
New instantiates the CoAP adapter implementation.
// New instantiates the CoAP adapter implementation .
func New(auth mainflux.ThingsServiceClient, pubsub nats.PubSub) Service {
	as := &adapterService{
		auth:    auth,
		pubsub:  pubsub,
		obsLock: sync.Mutex{},
	}
	return as
}
func New ( auth mainflux . ThingsServiceClient , pubsub nats . PubSub ) Service { as := & adapterService { auth : auth , pubsub : pubsub , obsLock : sync . Mutex { } , } return as }
New instantiates the CoAP adapter implementation.
New instantiates the CoAP adapter implementation .