Hello,
I am measuring up to 8 temperature sensors simultaneously using an Arduino Nano3 board for a project.
I am using a code written in an earlier project to write the temperature to Excel, but I accidentally reset the board.
I tried to reupload the original code, but it gives the following error message:
warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
This warning refers to the following lines:
myExcel.writeIndexed("Temperatuur_hoofdhuidkoeling", idx+3, 1,"%date%"); // write %date% (that will be converted in current date) to worksheet
myExcel.writeIndexed("Temperatuur_hoofdhuidkoeling", idx+3, 2,"%time%"); // write %time% (that will be converted in current time) to worksheet
myExcel.writeIndexed("Temperatuur_hoofdhuidkoeling", idx+3, 3, idx*10); // write time to excel (time = index * 10)'
Since I never used Arduino before, I don't really know how to solve this error.
I found several sources saying ''It's just a warning, so you can ignore it'', but then I get:
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x4d
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x57
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x50
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x72
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x74
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x63
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x6f
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x6c
Does anyone know how to solve this?
Thanks in advance.
PS: Why can't I upload this, if this is the exact code that was already on the board?