You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
#include <SoftwareSerial.h>
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.
The text was updated successfully, but these errors were encountered: