hybridgroup / cylon

JavaScript framework for robotics, drones, and the Internet of Things (IoT)
https://cylonjs.com
Other
4.19k stars 361 forks source link

Changing Buffer usage (new Node.js version) #354

Open aw3s0me opened 7 years ago

aw3s0me commented 7 years ago

Hello everyone, According to Node.js documentation, new Buffer(..) is deprecated. (https://nodejs.org/api/buffer.html#buffer_new_buffer_array Is it possible to change to .alloc method and .from? For instance, there [https://github.com/hybridgroup/cylon-ble/blob/master/lib/characteristic.js#L50](Link to new Buffer line).