This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <libubox/blobmsg_json.h> | |
#include <libubus.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/** | |
* Constants for ubus configuration | |
*/ | |
#define TOPIC_NAME "topology.connection" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <libubox/blobmsg_json.h> | |
#include <libubus.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#define TOPIC_NAME "topology.connection" | |
#define UBUS_SOCKET "/var/run/ubus.sock" | |
/** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "2.1" | |
services: | |
zookeeper: | |
image: docker.io/bitnami/zookeeper:3.8 | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: | |
- "2181:2181" | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3' | |
services: | |
zookeeper: | |
image: confluentinc/cp-zookeeper:latest | |
hostname: zookeeper | |
container_name: zookeeper | |
ports: | |
- "32181:32181" | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "curldefine.h" | |
#include <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <mosquitto.h> | |
#include <string.h> | |
/*SUB TASK DEFINE*/ | |
#define TOPIC "MQTT/Topic1" | |
#define CERT_EMQX "/tmp/tmp/broker.emqx.io-ca.crt" |