Skip to content

Commit

Permalink
chore: release v0.0.6-alpha.1
Browse files Browse the repository at this point in the history
* (HGlab01) Improve error handling
* (HGlab01) Verify if port is available
  • Loading branch information
HGlab01 committed Sep 18, 2023
1 parent 57b9304 commit 16b4519
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 9 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ onStop(function (callback) {
Placeholder for the next version (at the beginning of the line):
### **WORK IN PROGRESS**
-->
### 0.0.6-alpha.0 (2023-09-18)
### 0.0.6-alpha.1 (2023-09-18)
* (HGlab01) Improve error handling
* (HGlab01) Verify if port is available

### 0.0.5 (2023-09-11)
* (HGlab01) add sentry support
Expand Down
3 changes: 2 additions & 1 deletion build/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions build/main.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 14 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
{
"common": {
"name": "tinymqttbroker",
"version": "0.0.6-alpha.0",
"version": "0.0.6-alpha.1",
"news": {
"0.0.6-alpha.1": {
"en": "Improve error handling\nVerify if port is available",
"de": "Fehlerbehebung\nÜberprüfen Sie, ob Port verfügbar ist",
"ru": "Улучшить обработку ошибок\nПроверьте, доступен ли порт",
"pt": "Melhorar o manuseio de erros\nVerifique se a porta está disponível",
"nl": "Onverbeterlijke fouten\nVerifieer of de haven beschikbaar is",
"fr": "Améliorer la manipulation des erreurs\nVérifier si le port est disponible",
"it": "Migliorare la gestione degli errori\nVerifica se la porta è disponibile",
"es": "Mejorar el manejo de errores\nVerificar si el puerto está disponible",
"pl": "Poprawienie błędów\nJeśli port jest dostępny",
"uk": "Покращення обробки помилок\nПеревірити наявність порту",
"zh-cn": "改进错误处理\n港口的提供"
},
"0.0.6-alpha.0": {
"en": "Improve error handling",
"de": "Fehlerbehebung",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iobroker.tinymqttbroker",
"version": "0.0.6-alpha.0",
"version": "0.0.6-alpha.1",
"description": "tinymqttbroker",
"author": {
"name": "HGlab01",
Expand Down
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ class Tinymqttbroker extends utils.Adapter {
*/
private async onReady(): Promise<void> {
const serverPort: number = this.config.option1;
//const serverPort = 8081;

portscanner.checkPortStatus(serverPort, '127.0.0.1', (error, status) => {
// Status is 'open' if currently in use or 'closed' if available
if (status == 'open') {
this.log.error(`Port ${serverPort} in use, please configure another one!`);
this.log.error(`Port ${serverPort} in use, please configure another port in adapter settings!`);
this.terminate ? this.terminate(utils.EXIT_CODES.INVALID_CONFIG_OBJECT) : process.exit(0);
}
else {
this.aedes = new Aedes();
Expand Down

0 comments on commit 16b4519

Please sign in to comment.