ingegno / Blockly4Arduino

Code repo of Ingegno website with Blockly for Arduino (Derivative of Blockly and BlocklyDuino)
Apache License 2.0
14 stars 6 forks source link

I wish ESP8266 Arduino Blocks for IoT Projects #1

Open HAMUZAO opened 6 years ago

HAMUZAO commented 6 years ago

Hello ^_^

I really loved this project & i tried it this week & i can say that its the best Arduino block platform i seen in my life ^.^

But i wished if there was also some arduino blocks for IoT project based on ESP8266 module (ESP8266 Arduino)

I wish also a special function that can Parse a result between two strings like this function https://nmd-apps.jimdo.com/extensions/nmd-extensions/#4 (in Special Tools) if that is possible. This magic fuction can extract any information from a string or html response to get the needed data easily.

Thank you ^_^

bmcage commented 6 years ago

I do quite som ESP projects, so if time, something to add indeed. For the parse function, can you give some more info. The link says: Parse (Parse a result between two strings). What type of parse would you like? What is the usecase?

HAMUZAO commented 6 years ago

If a ESP Wifi blocks can be added that will be awesome ^_^ Maybe a GSM blocks too to handle SIM800L/SIM900 too

for the parsing function maybe an advenced substring function will be better to handle text like Html response for IoT applications Its hard to use the StringSubstring function to catch precise information from a feedback that change all the time & cant keep a following the index positions https://www.arduino.cc/en/Tutorial/StringSubstring

For exemple (with Reglar SubString)

String stringOne = "Content-Type:text/html";

  // you can also look for a substring in the middle of a string:
  if (stringOne.substring(14,18) == "text") {

  } 

The new SubString that i want

String stringOne = "Content-Type: text/html";

  // you can also look for a substring in the middle of a string:
  if (stringOne.substring("-Type:","/html") == "text") {

  } 

In that way, it will be easy to extract any data from any html feedback without worrying about the indexation problems that can change & give wrong results

Hope my wishes can be possible one day ^_^