Hi, All
Is it possible ?
Now for ESP32 it's compiled OK, but if to switch to ESP32-C3 it's errors like:
where code is like:
Is it possible ?
Now for ESP32 it's compiled OK, but if to switch to ESP32-C3 it's errors like:
B4X:
B4R Version: 4.00 BETA #1
Parsing code. (0.03s)
Building folders structure. (0.01s)
Compiling code. (0.10s)
Building project (0.03s)
Compiling (XIAO_ESP32C3) Error
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\b4r_esp_bh1750.cpp: In function 'B4R::Object* prepare_bh1750(B4R::Object*)':
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\b4r_esp_bh1750.cpp:108:85: error: call of overloaded 'wrapNumber(bool)' is ambiguous
return returnvalue.wrapNumber(lightMeter.begin(BH1750::CONTINUOUS_HIGH_RES_MODE));
^
In file included from P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\B4RDefines.h:26,
from P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\b4r_esp_bh1750.cpp:1:
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\rCore.h:88:11: note: candidate: 'B4R::Object* B4R::Object::wrapNumber(Byte)'
Object* wrapNumber(Byte i);
^~~~~~~~~~
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\rCore.h:89:11: note: candidate: 'B4R::Object* B4R::Object::wrapNumber(ULong)'
Object* wrapNumber(ULong i);
^~~~~~~~~~
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\rCore.h:90:11: note: candidate: 'B4R::Object* B4R::Object::wrapNumber(Long)'
Object* wrapNumber(Long i);
^~~~~~~~~~
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\rCore.h:94:11: note: candidate: 'B4R::Object* B4R::Object::wrapNumber(Int)'
Object* wrapNumber(Int i);
^~~~~~~~~~
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\rCore.h:95:11: note: candidate: 'B4R::Object* B4R::Object::wrapNumber(float)'
Object* wrapNumber(float d);
^~~~~~~~~~
P:\GoogleDrive\1Sources\Sensors_ORION\Bluetooth\B4R\orion_bt_sensor\Objects\src\rCore.h:96:11: note: candidate: 'B4R::Object* B4R::Object::wrapNumber(double)'
Object* wrapNumber(double d);
^~~~~~~~~~
Error during build: exit status 1
where code is like:
B4X:
Dim res As Boolean = RunNative("prepare_bh1750", Null)
...
#if C
B4R::Object returnvalue;
B4R::Object* prepare_bh1750(B4R::Object* o) {
...
return returnvalue.wrapNumber(lightMeter.begin(BH1750::CONTINUOUS_HIGH_RES_MODE));
}