Find Jobs
Hire Freelancers

Arduino Question

$10-30 USD

Cancelled
Posted over 8 years ago

$10-30 USD

Paid on delivery
I'm writing a code and I can't use a String as parameter of a function, the Arduino keeps resetting. /********** This is my original code thad do not works: **********/ [login to view URL](readLine("[login to view URL]", 1)); // calling the function String readLine(String fileName, unsigned int lineNum) { if (![login to view URL](fileName)) { [login to view URL]("- " + fileName + " do not exists!"); return ("FAILURE"); } [continue the code...] --------------------------------------------------------------------------------- /********** This code works:**********/ [login to view URL](readLine(1)); // calling the function String readLine(unsigned int lineNum) { if (![login to view URL]("[login to view URL]")) { [login to view URL]("- " + "[login to view URL]" + " do not exists!"); return ("FAILURE"); } [continue the code...] --------------------------------------------------------------------------------- Anyone to help me?
Project ID: 8703371

About the project

9 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
9 freelancers are bidding on average $23 USD for this job
User Avatar
hi bro i can help you please reply to discuss i am waiting for your reply regards
$44 USD in 1 day
4.9 (121 reviews)
7.4
7.4
User Avatar
Hello. There is several possible reasons, but for the final answer it's necessary to see the whole code. Also, a remote debugging (using TeamViewer) is the fastest way to check it. In the meantime, I see several places in your code which can cause such efect. The main reason, as I can see now, it's wide usage of "String" and lot of text ("i mean this") which can cause the very quickly than your device is out of RAM. The String() function is good when you need to write "hello world", but for larger projects it quickly causes lack of RAM (and usually this, in sequence, cause resets in very unexpected places). I can provide a cosultations and help in coding and propose changes in the code with some tricks and several handy functions. But I suppose such changes have to be applyied not only to this fragment of code. If you like - we can continue after creationg of the project and a single milestone deposite. Using of Skype and TeamViewer after that can make the whole process much more comfortable for the both sides. My bid includes 1-2 hours of work, think that's enough to fix all that moments. With best regards. Maxim
$30 USD in 0 day
4.9 (98 reviews)
5.9
5.9
User Avatar
Предложение еще не подано
$10 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I think you can replace the String type in the readLine method by char* Test this and tell me what happens
$25 USD in 3 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I have 3 years of experiance in developing codes for arduino. Have worked for three companies on embedded systems. Have worked on data logging applications using SD cards. I think I can help you in this regard. Thank you.
$12 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of BRAZIL
Valinhos, Brazil
4.8
29
Payment method verified
Member since Jan 22, 2014

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.