Code Monkey home page Code Monkey logo

iotmonitor's People

Contributors

frett27 avatar happyfacade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

happyfacade

iotmonitor's Issues

Core Dump,

After a while

connect to mqtt returned 0
sending initial stored state  to home/esp03/actuators/led8
sending initial stored state 255,0,0 to home/esp04/actuators/ledstrip
sending initial stored state 1 to home/esp08/actuators/led
sending initial stored state 0 to home/esp08/actuators/relay1
sending initial stored state 1 to home/esp10/actuators/led
sending initial stored state 1 to home/esp10/actuators/relay1
sending initial stored state 0 to home/esp11/actuators/relay1
Segmentation fault at address 0x0
???:?:?: 0x7f343011cb70 in ??? (???)
/home/use/gitiotmonitor/iotmonitor.zig:298:41: 0x228921 in callback (iotmonitor)
                while (itstorage.isValid()) {
                                        ^
/home/use/gitiotmonitor/iotmonitor.zig:252:13: 0x21caa9 in _external_callback (iotmonitor)
    callback(topic, message) catch {
            ^
/home/use/gitiotmonitor/mqttlib.zig:52:26: 0x2279ab in mqttlib.MqttCnx._msgArrived (iotmonitor)
        self_ctx.callBack(topic[0..tlength], mptr[0..mlength]);
                         ^
???:?:?: 0x262120 in ??? (???)
???:?:?: 0x7f342f7626da in ??? (???)
Abandon (core dumped)

Windows Compatibility

Iotmonitor only works on ***x plateform, support for windows, permit to extend the usage.

Add Process Handling

This could be nice if the iotmonitor can handle external process handling (mqtt python implemented process), This will then cover the whole needed requiements for always on systems.

MQTT lib OutOfMemory

sending initial stored state to home/esp13/actuators/ledstrip
close database

error: MQTTPublishError
/home/use/zig/lib/std/heap.zig:83:5: 0x210609 in std.heap.cResize (iotmonitor)
return error.OutOfMemory;
^
/home/use/zig/lib/std/heap.zig:83:5: 0x210609 in std.heap.cResize (iotmonitor)
return error.OutOfMemory;
^
/home/use/gitiotmonitor/mqttlib.zig:178:33: 0x2262a6 in mqttlib.MqttCnx.publishWithQos (iotmonitor)
if (resultPublish != 0) return error.MQTTPublishError;
^
/home/use/gitiotmonitor/mqttlib.zig:145:9: 0x214716 in mqttlib.MqttCnx.publish (iotmonitor)
return publishWithQos(self, topic, msg, 0);
^
/home/use/gitiotmonitor/iotmonitor.zig:384:5: 0x214c40 in publishWatchDog (iotmonitor)
try cnx.publish(topicBufferPayload.ptr, bufferPayload[0..payloadLength]);
^
/home/use/gitiotmonitor/iotmonitor.zig:467:9: 0x211dca in main (iotmonitor)
try publishWatchDog();
^

Process parameters analysis issue

index out of bounds
/home/use/iotmonitor/processlib.zig:34:48: 0x228b35 in processlib.Iterator.next (iotmonitor)
return self.inner.commandlinebuffer[start..self.currentIndex];
^
/home/use/iotmonitor/iotmonitor.zig:503:34: 0x2276ac in handleCheckAgent (iotmonitor)
while (itCmdLine.next()) |a| {
^
/home/use/iotmonitor/processlib.zig:111:21: 0x227569 in processlib.listProcesses (iotmonitor)
callback(&pi);
^
/home/use/iotmonitor/iotmonitor.zig:568:33: 0x21886a in checkProcessesAndRunMissing (iotmonitor)
try processlib.listProcesses(handleCheckAgent);
^
/home/use/iotmonitor/iotmonitor.zig:683:40: 0x216315 in main (iotmonitor)
try checkProcessesAndRunMissing();
^
/home/use/zig/lib/std/start.zig:257:37: 0x21a011 in std.start.main (iotmonitor)
switch (@typeinfo(@typeinfo(@typeof(root.main)).Fn.return_type.?)) {
^
???:?:?: 0x7efcc0abf0b2 in ??? (???)
Aborted (core dumped)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.