-
-
Save alexey-gamov/42ab8a0db57a617107d5658602747262 to your computer and use it in GitHub Desktop.
Публикация сообщений от счетчика в 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
$payload = array( | |
'Time' => str_replace(' ', 'T', $melbdate3), | |
'P1' => $P1_1, 'Q1' => $Q1_1, 'S1' => $S1_1, 'U1' => $U1_1, 'I1' => $I1_1, | |
'P2' => $P2_1, 'Q2' => $Q2_1, 'S2' => $S2_1, 'U2' => $U2_1, 'I2' => $I2_1, | |
'P3' => $P3_1, 'Q3' => $Q3_1, 'S3' => $S3_1, 'U3' => $U3_1, 'I3' => $I3_1, | |
'PS' => $PS_1, 'QS' => $QS_1, 'SS' => $SS_1, | |
'E1' => $E1_1, 'E2' => $E2_1, 'E3' => $E3_1, 'E4' => $E4_1 | |
); | |
$mqtt->publish('mercury/MyVR007_3/sensors_common', json_encode($payload), 0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment