-
Notifications
You must be signed in to change notification settings - Fork 7
Description
I just got one of these gizmos, and seems like the payloads over the websocket's have changed, i get output like
05:39:49.45Z Starting websocket
05:39:49.45Z Connecting to mqtt broker
05:39:58.089Z Client connected
05:39:58.111Z read error: invalid character 'ô' looking for beginning of value
05:39:58.192Z [] offline
05:39:58.192Z Unsubscribing to mqtt topic: /voltson/
05:39:58.192Z Unsubscribed to mqtt topic: /voltson/
05:40:01.231Z Client connected
05:40:01.254Z read error: invalid character 'ô' looking for beginning of value
05:40:01.336Z [] offline
05:40:01.382Z Unsubscribing to mqtt topic: /voltson/
05:40:01.383Z Unsubscribed to mqtt topic: /voltson/
05:40:04.424Z Client connected
If i change the code to use ReadMessage instead of ReadJSON, and dump the output, i see
05:41:12.834Z Starting websocket
05:41:12.834Z Connecting to mqtt broker
05:42:29.33Z Client connected
05:42:29.356Z msg [244 40 193 104 226 33 84 21 143 103 41 219 78 29 116 91 20 63 180 178 219 152 174 157 244 52 83 193 195 10 13 52 116 83 33 96 222 14 102 7 30 203 115 122 154 176 214 69 76 85 84 142 33 168 100 26 142 159 178 75 81 203 55 141 186 25 12 193 127 253 102 250 70 107 85 171 167 228 97 241 57 116 19 66 0 120 2 84 32 173 187 51 69 141 208 8 218 201 187 184 246 179 155 150 163 99 236 63 214 158 117 43 11 127 164 99 207 24 244 227 23 123 119 28 87 87 142 117 110 146 205 49 233 159 104 130 56 130 108 46 28 129 6 51 96 173 74 227 181 27 215 102 54 86 194 36 36 166 62 251 93 245 14 238 3 67 217 246 60 230 70 229 2 94 61 28 241 14 217 31 205 27 181 226 68 55 12 237 228 39 229 64 183 45 28 61 203 59 227 213 77 14 201 248 177 51 70 5 244 247 161 217 236 50 161 20 132 138 200 18 120 70 148 214 173 223 203 255 34 221 21 15 211 25 101 93 205 178 247 177 9 210 167 64 70 140 141 107 232 50 188 63 226 54 13 250 200 231 18 89 165 198 220 68 24 23 30 19 168 63 169 35 179 206 11 115 44 195 20 108 61 93 11 201 192 7 252 213 188 37 98 197 62 249 71 98 156 55 131 105 72 234 189 200 249 89 219 86 229 195 214 179 88 133 176 67 237 130 10 142 134 168 152 126 244 55 121 5 94 58 100 48 120 193 191 173 242 234 187 57 178 185 109 76 62 171 147 204 87 93 72 252]
05:42:29.43Z [] recv: map[]
05:42:34.367Z [] ping
05:42:34.372Z msg [10 236 15 55 219 3 52 51 14 231 62 60 216 126 183 81]
05:42:34.468Z [] recv: map[]
05:42:39.415Z [] ping
05:42:39.482Z msg [10 236 15 55 219 3 52 51 14 231 62 60 216 126 183 81]
05:42:39.52Z [] recv: map[]
05:42:44.38Z [] ping
05:42:44.496Z msg [10 236 15 55 219 3 52 51 14 231 62 60 216 126 183 81]