0

Bluefruit feather M0 not sending linefeeds
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Bluefruit feather M0 not sending linefeeds

by philg on Sat Jan 20, 2018 10:26 pm

I have a Feather M0 Bluefruit v 0.7.7 connected to an IOS 10.3.3 iPhone using UART mode. No linefeeds are being sent to the phone from either println or by appending \n to the sent string. I have looked at the hex data displayed on the phone's UART terminal and don't see any end of line characters. Why is that?

philg
 
Posts: 63
Joined: Sun Mar 06, 2011 4:42 pm

Re: Bluefruit feather M0 not sending linefeeds

by philg on Sat Jan 20, 2018 10:41 pm

I usually tell others to RTFM so I did and realized that 1) println causes the data to be sent but with linefeed stripped and 2) the "\n" needs to be escaped as "\\n". Never mind!

philg
 
Posts: 63
Joined: Sun Mar 06, 2011 4:42 pm

Please be positive and constructive with your questions and comments.