Hi all,
I'm using Star-Dust's BT_printer library to print to a bluetooth printer.
I've declared:
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
in Main's Globals section.
Everything is working, I connect to the printer I want, all this in Main Activity.
In the same project I've a service that calls a code module that starts an HttpServer that has an Api to accept print commands from remote machines...
My question is, being that server implemented on a code module, how can I use the Printer defined on the Main activity?
Thanks.
			
			I'm using Star-Dust's BT_printer library to print to a bluetooth printer.
I've declared:
			
				B4X:
			
		
		
		Dim Printer As BT_Printerin Main's Globals section.
Everything is working, I connect to the printer I want, all this in Main Activity.
In the same project I've a service that calls a code module that starts an HttpServer that has an Api to accept print commands from remote machines...
My question is, being that server implemented on a code module, how can I use the Printer defined on the Main activity?
Thanks.
 
				 
 
		 
						
					 
 
		 
 
		 
 
		