Closed lasselukkari closed 9 years ago
Actually the goal is to easily implement the client interface so it's uint8_t, I find this a little weird too, char is far more common for read methods.
It's weird you have this compile error, did you pass char* instead of uint8_t* ? Ideally we should return the same type as serial->readBytes() and other serial read methods which is char*...
And about the char . The Stream interface in Resources/Java/hardware/arduino/cores/arduino/Stream.h defines it as "size_t readBytes( char buffer, size_t length);"
Yes, let's do this. Please also rename the arguments to match the Stream.h way.
Make a dedicated PR for this as I won't merge the beginSend stuff now.
I removed the accidental commit and renamed the arguments.
Thanks for the good work.
Confirmed, Arduino 1.0.6 Arch Linux x86_64. :)
ESP8266.cpp:647: error: invalid conversion from 'uint8t' to 'char_'
Changed buffer type and added missing right curly bracket.