You've already forked Adafruit_MQTT_Library
							
							
				mirror of
				https://github.com/adafruit/Adafruit_MQTT_Library.git
				synced 2025-11-03 11:53:11 +03:00 
			
		
		
		
	Added unsigned short python symbol
This commit is contained in:
		@@ -74,10 +74,10 @@ def parseMsg(payload):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
             Var NAME   | C TYPE (python symbol)    | size of member x bytes
 | 
					             Var NAME   | C TYPE (python symbol)    | size of member x bytes
 | 
				
			||||||
             -------------------------------------------------------------------
 | 
					             -------------------------------------------------------------------
 | 
				
			||||||
              "charAry" |   uchar (s)               |   10s x 1 = 10 bytes
 | 
					              "charAry" |  uchar (s)               |   10s x 1 = 10 bytes
 | 
				
			||||||
              "val1"    |   int16 / short (h)       |   1h  x 2 =  2 bytes
 | 
					              "val1"    |  int16 / short (h)       |   1h  x 2 =  2 bytes
 | 
				
			||||||
              "val2"    |   unsigned long (L)       |   1L  x 4 =  4 bytes
 | 
					              "val2"    |  unsigned long (L)       |   1L  x 4 =  4 bytes
 | 
				
			||||||
              "val3"    |   uint16 / unsigned short |   1H  x 2 =  2 bytes
 | 
					              "val3"    |  uint16/unsigned short(H)|   1H  x 2 =  2 bytes
 | 
				
			||||||
              ------------------------------------------------------------------
 | 
					              ------------------------------------------------------------------
 | 
				
			||||||
                                    Total packet size =         | 18 bytes |
 | 
					                                    Total packet size =         | 18 bytes |
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user