Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

245
Vistas
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 Respuestas
Responde la pregunta

0

You can send it.

  1.  

    Arduino.sendData(array);
    
  2.  

    public void sendData(int array[])
    {
    
    }
    
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda