Send accelerometer data to server


Hi to everyone! I'm new on app inventor.
I've created a server to receive accelerometer data from a simple app created in app inventor but i can'n see the data in the server. The app and the server are communicating because i can see in the server for each value sent from app an empty log message (without accelerometer values).
Here report the server code and some screenshot of the app inventor patch and response of server.

const express = require('express');
const bodyParser = require('body-parser');
const app = express();

// Middleware per il parsing del corpo della richiesta

// Gestisce la richiesta POST dall'applicazione'/accelerometer-data', (req, res) => {
  const data = req.body;
  console.log('Dati ricevuti dall\'app:', data);
  // Puoi elaborare i dati come desideri qui

  // Invia una risposta all'app (se necessario)
  res.json({ message: 'Dati ricevuti correttamente' });

const PORT = 3000;

app.listen(PORT, () => {
  console.log(`Server in ascolto sulla porta ${PORT}`);

My guess is the problem lies in your script. I would do some testing with that to ensure you are handling the postText correctly.

Hi! Did you make any test?