You are on page 1of 2

Getting Database and MQTT details from Common API

Common API :

Maintain mqtt url

Subscriber :

dbConnection :

make db connection parameters dynamic (from common API)

app.ts :

write function to call the common API for MQTT URL and connection parameters

Publisher :

write function to call the common API for MQTT URL

Getting Database and Scheduling details from Common API

dbConnection :

make db connection parameters dynamic (from common API)

app.ts :

write function to call the common API for connection parameters and scheduler details

* * * * * *

┬ ┬ ┬ ┬ ┬ ┬

│ │ │ │ │ │

│ │ │ │ │ └ day of week (0 - 7) (0 or 7 is Sun)


│ │ │ │ └───── month (1 - 12)

│ │ │ └────────── day of month (1 - 31)

│ │ └─────────────── hour (0 - 23)

│ └──────────────────── minute (0 - 59)

└───────────────────────── second (0 - 59, OPTIONAL)

For particular time in seconds – 30 * * * * *

For particular time in minutes – * 10 * * * *

For particular time in hour - * 30 7 * * *

For particular time in day of month - * 30 7 18 * *

For particular time in month - * 30 7 18 10 *

For particular time in day of week - * 30 7 18 10 2

For every time */5

You might also like