Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serial read not read complete sentence #150

Closed
sabas1080 opened this issue Jan 23, 2019 · 0 comments
Closed

Serial read not read complete sentence #150

sabas1080 opened this issue Jan 23, 2019 · 0 comments

Comments

@sabas1080
Copy link
Contributor

Describe the bug
i am work with beta version and serial for GPS, serial.readUntil not work as previous version, sentence from GPS are not complete

example:

previous version the data recieved is:

$GPRMC,222313.000,A,2151.1814,N,10218.8003,W,0.00,284.07,060119,,,D*76

and the new version is

RMC,222313.000,A,2151.1814,N,10218.8003,W,0.00,284.07,060119,,,D*76

To Reproduce
Use my code

serial.setBaudRate(BaudRate.BaudRate9600)
serial.setRxBufferSize(90)
forever(function () {
    console.log(serial.readUntil(Delimiters.NewLine))
})

Screenshots

makecode maker blocks javascript editor 26
makecode maker blocks javascript editor 27

Desktop (please complete the following information):

  • OS: MacOS
  • Browser chrome
  • Version 71

Additional context
Tested in arduino boad MKR1300

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants