This file contains 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
import thread, mosquitto, random, time | |
# mosquitto reference and download can be found here: http://mosquitto.org/documentation/python/ | |
class mqtt(): | |
def __init__(self, broker = "127.0.0.1", port = 1883, clientID = None): | |
self.__broker = broker | |
self.__port = port | |
self._client = None | |
self.__subscriptionsList = [] | |
self.__pendingSubscriptionsList = [] |
This file contains 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
DefaultRuntimeDir ${APACHE_RUN_DIR} | |
PidFile ${APACHE_PID_FILE} | |
Timeout 300 | |
KeepAlive On | |
MaxKeepAliveRequests 100 | |
KeepAliveTimeout 5 | |
User ${APACHE_RUN_USER} | |
Group ${APACHE_RUN_GROUP} | |
HostnameLookups Off |
This file contains 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
import RPi.GPIO as G | |
import time | |
G.setmode(G.BCM) | |
G.setwarnings(False) | |
G.setup(7, G.OUT) | |
G.setup(25, G.IN, pull_up_down=G.PUD_UP) | |
toggle = 1 | |
data = 1 |
This file contains 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 <iostream> | |
void banner(); | |
void m7_t1(); | |
void m7_t2(); | |
void m7_t3(); | |
void m8_t1(); | |
void m8_t2(); | |
void m8_t3(); |
OlderNewer