Error Compiling
-
all is broken in last version
In file included from EnergyMeterPulseSensor.ino:38:0:
/home/andrej/sketchbook/libraries/MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
^
EnergyMeterPulseSensor.ino:47:10: error: call to ‘MySensor::MySensor(MyTransport&, MyHw&)’ uses the default argument for parameter 2, which is not yet defined
In file included from DallasTemperatureSensor.ino:27:0:
/home/andrej/sketchbook/libraries/MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()
^
DallasTemperatureSensor.ino:39:10: error: call to ‘MySensor::MySensor(MyTransport&, MyHw&)’ uses the default argument for parameter 2, which is not yet defined
-
I am trying to compile the SerialGateway.ino example and keep getting the same error
MySensors/MySensor.h:158:70: error: expected type-specifier before ‘MyHwDriver’
MySensor(MyTransport &radio =*new MyTransportNRF24(), MyHw &hw=*new MyHwDriver()I am using the arduino ide and downloaded the 1.5 version of the library. With the 1.4 version it compiles ok, but i want to create a serial gateway with RFM69 Radio
I appreciate the help, i am new to this and i am discovering.
Thanks
-
@ampmendes Did you delete all 1.4 libraries before loading the 1.5 ones and then restarting the IDE? These types of errors are typically caused by having mutliple files with the same name.
Cheers
Al
-
@Sparkman i do not use IDE...
-
Then remove old MySensors library (and sketch) from your codebender account before cloning sketch again from mysensors.org (with libraries).
-
Thank for the reply, but i already found the problem, i was using an old IDE, i installed the last version and it fixed the problem
Suggested Topics
-
Code for beta-testing?
Controllers • 24 Mar 2014, 20:48 • andriej 9 Aug 2014, 10:44 -
Making WiFiManager compatible with MySensors 2.3.2
Bug Reports • 12 Feb 2020, 21:43 • pihome 1 Jun 2022, 16:02 -
RFM95W sleep() directly after send() often doesn't sleep radio
Bug Reports • 1 Jan 2023, 18:41 • prawnpie 8 Jan 2023, 05:36 -
ACK -aka ECHO beeing missed by Serial Gateway with RF24 radios. V2.3.2
Bug Reports • 15 Apr 2023, 06:27 • GaryStofer 21 Apr 2023, 17:34 -
Boards esp8266 v3.1.0 or Newer Doesn't Work with MySensors
Bug Reports • 21 Feb 2023, 01:55 • d-smes 25 Feb 2023, 19:37 -
some differences between serial- and tcp-gateways.
Bug Reports • 15 Mar 2023, 09:26 • Branther 30 Mar 2023, 15:40