void loop()
{
if (bleShield.available())
{
Serial.print("message");
Serial.print(" ");
bleShield.read()Serial.println(); // <<<--- ERROR in code generation**
}
}
...AND the line ” bleShield.read()Serial.println();” is wrong in syntax.
It should read: Serial.println(bleShield.read());
ALSO:
If the TRUE option is set to FALSE (for new line generation), the following wrong code is generated:
void loop()
{
if (bleShield.available())
{
Serial.print("message");
Serial.print(" "); // <<<--- ERROR in code generation
bleShield.read() } // <<<--- ERROR in code generation
}
VERSION: ardublock-all-master-beta-20170414.jar
Noticed an error in Arduino code generation. In the picture below, the Ardu blocks used generates the Arduino code below:![ardublock_error](https://user-images.githubusercontent.com/6268038/26945898-0e8e8e4a-4c96-11e7-8b77-e6799a9a2614.png)
include
SoftwareSerial bleShield(10,11); void setup() { bleShield.begin(19200); Serial.begin(9600); }
void loop() { if (bleShield.available()) { Serial.print("message"); Serial.print(" "); bleShield.read()Serial.println(); // <<<--- ERROR in code generation** } } ...AND the line ” bleShield.read()Serial.println();” is wrong in syntax. It should read: Serial.println(bleShield.read());
ALSO:
If the TRUE option is set to FALSE (for new line generation), the following wrong code is generated: void loop() { if (bleShield.available()) { Serial.print("message"); Serial.print(" "); // <<<--- ERROR in code generation
bleShield.read() } // <<<--- ERROR in code generation }
Thanks to advise.