I'm trying to send values inside a object but the problem that I have only the last values

This is my script :

```
async function allTemp() {
const element = {};

const listTopic = require("../scripts/findTopic.js");

/*Output: Map {
  0 => '{home/sensors/temp/kitchen}',
  1 => '{home/sensors/temp/bathroom}',
  2 => '{home/sensors/temp/room}' }*/

var options = {
    ***
};

var client = mqtt.connect('***', options);

// Wait for connection with a Promise
await new Promise(resolve => client.on('connect', resolve));

// subscribe to a topic
for (let [key, value] of listTopic.allTopics()) {
    const topicSelected = value;
    var newTopic = topicSelected.substring(1, topicSelected.length - 1);
    client.subscribe(newTopic, { qos: 0 });

    // Wait for message event
    const { topic, message } = await new Promise(resolve => client.once("message", (topic, message) => resolve({ topic, message })));
    element["topic"] = topic;
    element["value"] = message.toString();
    element["timestamp"] = new Date()
 }
 console.log(element);
 return mapResultTemp;
}

allTemp();
module.exports = { allTemp };

```

The problem is that retrieve only the last values and want all values inside my object

Actuual result:

```
{ topic: 'home/sensors/temp/room',
  value: '21',
  timestamp: 2021-06-24T08:07:49.272Z }

```

Expected result :

```
[{ topic: 'home/sensors/temp/kitchen',
  value: '24',
  timestamp: 2021-06-24T08:07:49.272Z },
 { topic: 'home/sensors/temp/bathroom',
  value: '22',
  timestamp: 2021-06-24T08:07:49.272Z },
 { topic: 'home/sensors/temp/room',
  value: '21',
  timestamp: 2021-06-24T08:07:49.272Z }]

```