diff --git a/UdpSocket.js b/UdpSocket.js index ca7b5b5..94ebe9c 100644 --- a/UdpSocket.js +++ b/UdpSocket.js @@ -34,7 +34,7 @@ function UdpSocket(options, onmessage) { if (typeof options === 'string') options = { type: options } this.type = options.type - this._id = '' + instances++ + this._id = instances++ this._state = STATE.UNBOUND this._subscription = DeviceEventEmitter.addListener( 'udp-' + this._id + '-data', this._onReceive.bind(this)