drodri
  • Member for 7 years, 10 months
  • Last seen more than 2 years ago
C++ vs. The Arduino Language?
Accepted answer
60 votes

My personal experience as professor (programming, mechatronics) is that if you have previous programming experience and you are aware of concepts as OOP, it is better to go for C/C++. The arduino ...

View answer
How do I split an incoming string?
13 votes

You could do something like the following, but please take into account several things: If you use readStringUntil(), it will wait until it receives the character or timeouts. Thus, with your current ...

View answer
How to call C functions from Arduino sketch?
Accepted answer
10 votes

You can extern "C" #include like the following: extern "C"{ #include "crc16.h" }; void setup(){ } void loop(){ CalculateCRC16("<09M", 4); } And the crc16.h file could be (some minor fixes, ...

View answer
Writing First Library - Serial Stream Object
Accepted answer
10 votes

Here is a simple example (built and tested with a mega2560), with a class that can be passed a Stream object, and sends a Hello over this generic stream object. When constructing the object, you can ...

View answer
How to build (concat) a string with big numbers
Accepted answer
7 votes

The concat function does not implement a float version, but some of char, int, unsigneds... unsigned char String::concat(long unsigned int) unsigned char String::concat(unsigned int) unsigned char ...

View answer
Client or WiFiClient wrapper for adafruit CC3000 wifi
Accepted answer
5 votes

As I didn't get any answer, and further search for an existing solution failed, I decided to roll my own. The class header is very straightforward, I decided to go for single inheritance and ...

View answer
What is the library m in C++ linker?
Accepted answer
4 votes

The m library is the "math" library. You have to link with it in most flavours of gnu compilers (it is typically not required in other, as it is included in the standard lib) when using functions and ...

View answer
How to send an email with Arduino and a WiFi shield?
3 votes

You actually present 2 issues here, which can be handled separately: You are concerned about having a WiFi, not an Ethernet shield. This doesnt affect at all for sending emails or any other network ...

View answer