Skip to content

Tag: node.js

I am trying to fetch information from phpmyadmin database, but in browser it’s showing cannot get/employee and in command prompt there is no error

Windows PowerShell Copyright (C) Microsoft Corporation. All rights reserved. Try the new cross-platform PowerShell https://aka.ms/pscore6 PS E:Developmentcrud-node> node index.js Express server is running on port number: 8000 DB connection is successful Answer there seems to be spelling mistake in end poin…

Mqtt publish each element of an array using nodejs

I have a Mqtt client. I need it to publish each element with 5 seconds interval and receive each in on_message callback. But my code publishes each element with same no of times as array length. Example – My code Result – But I need – Answer Your set Interval and subscribe are in the forEach…