Read the statement by Michael Teeuw here.
Electricity Bill Module Development
-
@sdetweil Hahahaha true that!
Kinda fixed it guided by your recommendations but the thing is that I’m still getting the same output:
Here the code:
-
-
hmm, actually it does help. I’ll be testing around and tell you when I get it to work!
Anyways your help was a huge pilar to keep myself going with this, much thanks brother💝 -
Does it help if I tell you that I got everything on my onstart function of the node_helper file?
-
@SopaMaruchan never done it in start.
I usually wait til the module sends it’s 1st request
-
@SopaMaruchan I’m realizing that my my receiveSocketNotification is not being triggered on my MM-Module file:
I logged some text after calling receiveSocketNotification function but there’s no output on console.node_helper:
-
@SopaMaruchan if the send fails like that, not sent
-
@SopaMaruchan
let self=thishas to be inside the getBill() function
otherwise it could be set wrong… -
@SopaMaruchan maybe for debug
inside the request() callback function,
do a
console.log(JSON.stringify(self, null,2))
to see what ‘this’ was pointing to
-
@sdetweil it’s indeed pointing to my module. Here’s the output:
and the huge LOG ends with the last 2 arguments: null & 2