arduino example rcswitch send demo

This contains the code for sending data to a transmitter. I have copied the code exactly for sending binary code. Keep getting the answer in the send line 'myswitch does not name a type'. Thus it wont compile
The code I obtained from the rc receive demo simple. The data received was the same for both on and off. I thought it should be different. Anyway I am trying to use the send code now to operate my remote gate lock.
Does anyone know what the problem is? The code is of course going to the data input of a transmitter.

I see no code

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.