Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

243
Views
Send an array of numbers from Java to Arduino

I need to send an amount of numbers given by the user from Java to an Arduino UNO.

The numbers have to be random.

I had this two ideas:

  1. Send the numbers one by one

    for(int count = 0; count< amount; count++){                             
        Arduino.sendData(array[count]);
    }
    
  2. Write a TXT file with the numbers and read one by one from there.

Questions:

  • Is there anyway to just send the array?

  • If using the option 1, I need to do an input = Serial.read(); everytime a new number is sent?

  • In option 2, if I can open the txt file and read one by one, can it be done without a SD card? (reading the file from PC)

  • Is there another way (not necessarily easier) to do it?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

You can send it.

  1.  

    Arduino.sendData(array);
    
  2.  

    public void sendData(int array[])
    {
    
    }
    
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!