Answer the question
In order to leave comments, you need to log in
Can I connect an active microphone to an IP camera?
Greetings. There is an IP camera Beward BD4330DS powered only by PoE.
There is a "Shoroh-7" microphone with a power supply of 7-13 V.
A microphone with 2 leads is installed on the camera itself.
I want to do this: take power from the camera board for "Shoroh-7" and connect it instead of the native one.
Will it work?
Thank you.
Answer the question
In order to leave comments, you need to log in
It looks like it should work like this:
var f=function qwe(){var x=10; return x}
console.log(f);
Another option is to globally override console.log();
Read about scopes and contexts in JavaScript (they are not the same thing).
https://learn.javascript.ru/functions-closures - scopes
javascript.ru/ecma/part10 - contexts
In short, the function forms its scope (scope) when you declare a variable in this scope (inside the function), then it will be visible only inside this function (it closes inside this function). If you need to get the value of x , then you need to either declare it outside the function, or return it as the result of the function execution.
I will not write examples, as there are above.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question