mirror of
				https://github.com/eledio-devices/thirdparty-ArduinoJson.git
				synced 2025-10-31 16:14:11 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			34 lines
		
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| /*
 | |
|  * Arduino JSON library
 | |
|  * Benoit Blanchon 2014 - MIT License
 | |
|  */
 | |
| 
 | |
| #pragma once
 | |
| 
 | |
| #ifndef ARDUINO
 | |
| 
 | |
| typedef unsigned char uint8_t;
 | |
| 
 | |
| class Print
 | |
| {
 | |
| public:
 | |
| 
 | |
|     virtual size_t write(uint8_t c) = 0;
 | |
| 
 | |
|     size_t write(const char* s)
 | |
|     {
 | |
|         size_t n = 0;
 | |
|         while (*s)
 | |
|         {
 | |
|             n += write(*s++);
 | |
|         }
 | |
|         return n;
 | |
|     }
 | |
| };
 | |
| 
 | |
| #else
 | |
| 
 | |
| #include <Print.h>
 | |
| 
 | |
| #endif
 |