code problems (byte not supported)

315MHz and 433MHz wireless connections are very commonly used by consumer electronics including weather stations, home automation remote controls, power consumption meters, car alarms, and also many DIY projects.
Post Reply
davewal
Posts: 11
Joined: Sat Mar 24, 2012 11:58 pm

code problems (byte not supported)

Post by davewal » Sun Mar 25, 2012 12:52 am

Sorry if this has been answered elsewhere, but ...

I'm using the Freetronics 433 shield and an Etherten.
I've downloaded 'freetronics-ReceiverShield-36ba699' from
https://github.com/practicalarduino/Wea ... onReceiver
as described on the
http://www.practicalarduino.com/project ... n-receiver project page

When verifying/uploading (in the Arduino 1.0 IDE) I keep getting this error
As of Arduino 1.0, the 'BYTE' keyword is no longer supported.
Please use Serial.write() instead.


Searching forums and the Web have given me no leads, and I suspect that the problem is actually with the IDE, surely 'byte' is a valid keyword!

I also note that the Receiver Shield code is 2 years old, so understandably it would not have been tested under the 1.0 IDE.

I'll try a post on the Arduino site as well, but any help appreciated.

Dave

davewal
Posts: 11
Joined: Sat Mar 24, 2012 11:58 pm

Re: code problems (byte not supported)

Post by davewal » Sun Apr 22, 2012 2:23 am

just to answer myself...

I've gone back to arduino 0023, at least the code works there.. :-(

Dave

tel
Posts: 1
Joined: Sun May 13, 2012 3:35 am

Re: code problems (byte not supported)

Post by tel » Sun May 13, 2012 4:43 am

I had the same problem today. The BYTE keyword is no longer needed in the Arduino 1.0 IDE.

Run a Find and Replace on the code, remove all instances of ", BYTE" (without the quotes) - it occurs in 8 places.

The code now compiles fine in the Arduino 1.0 IDE.

Tel

Murkh
Posts: 4
Joined: Sun Jun 10, 2012 9:28 am

Re: code problems (byte not supported)

Post by Murkh » Sun Jun 10, 2012 9:52 am

awesome.. that worked a treat!

I got a issue though.. I have activity on D6 but not getting any output other then, 'Weather Station Receiver has powered up'

I'm guessing the RF isn't picking up the signal?

cary
Posts: 4
Joined: Wed Jun 27, 2012 1:56 pm

Re: code problems (byte not supported)

Post by cary » Wed Jun 27, 2012 1:59 pm

I am having the exact same problem. Did you have any luck?

cary
Posts: 4
Joined: Wed Jun 27, 2012 1:56 pm

Re: code problems (byte not supported)

Post by cary » Wed Jun 27, 2012 7:59 pm

i got the error to go away but still not signal from the sensor.

RLmonitor
Posts: 5
Joined: Fri May 11, 2012 3:14 am

Re: code problems (byte not supported)

Post by RLmonitor » Sat Jun 30, 2012 9:20 am

How long are you waiting for a signal?
What weather sensors are you using?
The weather sensors will probably be transmitting randomly. try resetting one - it will probably transmit a few seconds after the reset.

cary
Posts: 4
Joined: Wed Jun 27, 2012 1:56 pm

Re: code problems (byte not supported)

Post by cary » Tue Jul 03, 2012 6:05 pm

I gave up on an La Crosse TX6U. I never seem to get a signal and eventually ordered a La Crosse WS 450 (weather station receiver and sensor). I still have no signal. A list of known working sensors would be very valuable.

homerbloodysimpson
Posts: 1
Joined: Sun Feb 10, 2013 1:32 pm

Re: code problems (byte not supported)

Post by homerbloodysimpson » Sun Feb 10, 2013 2:20 pm

Hi All,

The "As of Arduino 1.0, the 'BYTE' keyword is no longer supported. Please use Serial.write() instead." problem is easily sorted as mentioned previously: remove the word "byte" essentially.
The next problem is that the code doesn't work on an EtherTen. This is my problem too at the moment.
I've had a look at the example code and for starters, haven't been able to figure out when the red LED is supposed to be driven - and the green LED is being driven on and off by noise like there's no tomorrow.
I probed around with the CRO and it seems that the noise filtering parameters might need to be changed.
Is an EtherTen a faster processor than the original target board?
I'm guessing the intent was to drive the green LED only when non-noise data is being received.
Without the online debugging available in other more proprietary platforms, I'm stumped as to why the only line that refers to the red LED:
RED_TESTLED_ON(); //RED test led on
- never gets called. This suggests that Init_RF_Interpreters(void) never gets called.

Like I said, I haven't figured this code out yet... has anyone made progress with this example code and the EtherTen?

Post Reply