lsongdev / node-bluetooth

:large_blue_diamond:😬Bluetooth serial port communication for Node.js
https://npmjs.org/node-bluetooth
Other
197 stars 56 forks source link

baud rate of "Node-Bluetooth" package #26

Open thefakhreddin opened 5 years ago

thefakhreddin commented 5 years ago

Dear @song940 What is the default baud rate of the node-bluetooth package? And is it possible to customize it within the code? Thanks.

smolleyes commented 5 years ago

+1

i use this package (nice!!) with new ardusimple gps, all sentences are truncated no way to get lines 1 by 1, searching now :p maybe baudrate can fix this (this gps is 38400 by default)

normally i have line like with serialport : $GBGSV,3,3,09,29,12,034,,71 $GNGLL,4842.50545,N,00227.22579,E,145400.00,A,A74

from ble i have: ( i added start and stopp for debug

the connection.delimiter option seems not changing anything

START 45400.00,1,-0.4,-0.7,-1.6,0.2,0.9,0.3,-2.7,0.1,-2.3,,,,1,15E $GNGRS,145400.00,1,-0.5,1.2,-0.4,3.7,0.9,-11.8,0.9,0.0,,,,,1,54 STOPPPPPP

thanks