THanks Kg,
I have a few more questions since I cannot get the following code snippet to work. I am sorry for asking a god member for clarification...
The following code snippet generates the "has no member function error for either call to Serial.write.:
void SerialWriteTest(){
byte val = 3;
float incorrectParameter = 0.7;
/* Both of the following calls generate the compilation error
In function 'void SerialWriteTest()':
error: 'class HardwareSerial' has no member named 'write'
*/
Serial.write(val);
//Serial.write((uint8_t)val);
/* When uncommented, the following bad call generates the error:
error: no matching function for call to
HardwareSerial:print(byte&, int, float&)
*/
//Serial.print( val, BYTE, incorrectParameter );
}
I believe I have created a similar problem you describe as my initial error with the incorrect call to Serial.print above. The compilation error indicates that the call to print does not have a form taking 3 parameters, rather than a 'class member not found' error.
I think the calls to Serial.write meet the criteria you suggest. According to the online reference, the data type 'byte' is an unsigned 8-bit value. Again, both calls get the 'member not found' error rather than a parameter data type error or a nonexistent function overload signature.
One more question - the online reference shows the following forms for calls to Serial.write:
Syntax
serial.write(val)
serial.write(str)
serial.write(buf, len)
Parameters
val: a value to send as a single byte
str: a string to send as a series of bytes
buf: an array to send as a series of bytes
len: the length of the buffer
Are there cases when the online documentation does not reflect what folks have had time to implement? Note that I am not implicitly complaining. I am amazed at what the ardiuno community has accomplished and understand situations like this if that is the case. I hope some day to know enough to give back some...
Oh, I think I have the most recent download of the dev environment - arduino 0010 Alpha is what my about box says.