Skip to content

Commit

Permalink
Merge pull request #11 from lwindg/master
Browse files Browse the repository at this point in the history
1.0.1-3 & 1.0.1-2's change.
  • Loading branch information
imZack committed Jun 12, 2015
2 parents 40d178c + af9f85b commit 4f6edd0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
14 changes: 13 additions & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
sanji-controller (1.0.0-2) unstable; urgency=low
sanji-controller (1.0.1-3) unstable; urgency=low

* Sleep more longer (reconnect).

-- Aeluin Chen <[email protected]> Fri, 12 Jun 2015 15:45:17 +0800

sanji-controller (1.0.1-2) unstable; urgency=low

* Remove "-controller" from client id if using local id.

-- Aeluin Chen <[email protected]> Tue, 09 Jun 2015 15:30:58 +0800

sanji-controller (1.0.1-1) unstable; urgency=low

* Using config file and option arguments instead of environment variable
for local id.
Expand Down
2 changes: 1 addition & 1 deletion src/sanji_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ struct sanji_userdata *sanji_userdata_init(struct sanji_config *config)

/* overwrite client_id */
if (config->client_id == NULL)
sprintf(ud->client_id, "%s-%s", config->local_id, SANJI_ID_SUFFIX);
sprintf(ud->client_id, "%s", config->local_id);

/* set /{local_id}/SANJI_CONTROLLER_TOPIC topic */
ud->topic_count++;
Expand Down
2 changes: 1 addition & 1 deletion src/sanji_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ extern "C" {
#define SANJI_CONTROLLER_TOPIC "/controller"
#define SANJI_CONTROLLER_TOPIC_LEN 11
#define SANJI_TOPIC_MAX_LEN 256
#define SANJI_LOCAL_ID_LEN MOSQ_MQTT_ID_MAX_LENGTH - SANJI_ID_SUFFIX_LEN
#define SANJI_LOCAL_ID_LEN MOSQ_MQTT_ID_MAX_LENGTH


/* build-in model topics and resources */
Expand Down

0 comments on commit 4f6edd0

Please sign in to comment.