Open pw44 opened 3 years ago
by subscribe.php, function procmsg($topic, $msg){ echo "Msg Recieved: $msg\n"; } shows the paylod ($msg).
How to include a database query using the paylod ($msg)?
as i understand, procmsg is called inside while($mqtt->proc()) {}.
thx in advance in explaining how it can be done.
by subscribe.php, function procmsg($topic, $msg){ echo "Msg Recieved: $msg\n"; } shows the paylod ($msg).
How to include a database query using the paylod ($msg)?
as i understand, procmsg is called inside while($mqtt->proc()) {}.
thx in advance in explaining how it can be done.