BASE_URL = 'http://cloud.boltiot.com/remote/'

url_list = {
    'digitalWrite' : '{}/digitalWrite?pin={}&state={}&deviceName={}',
    'digitalRead' : '{}/digitalRead?pin={}&deviceName={}',
    'analogWrite' : '{}/analogWrite?pin=1&value={}&state={}&deviceName={}',
    'analogRead' : '{}/analogRead?pin={}&deviceName={}',
    'serialBegin' : '{}/serialBegin?baud={}&deviceName={}',
    'serialWrite' : '{}/serialWrite?data={}&deviceName={}',
    'serialRead' : '{}/serialRead?till={}&deviceName={}',
    'version' : '{}/version?&deviceName={}',
    'restart' : '{}/restart?&deviceName={}',
    'isAlive' : '{}/isAlive?&deviceName={}',
}

def url(operation):
    return BASE_URL+url_list[operation]

BASE_URL = 'http://cloud.boltiot.com/remote/'

url_list = {
    'digitalWrite' : '{}/digitalWrite?pin={}&state={}&deviceName={}',
    'digitalRead' : '{}/digitalRead?pin={}&deviceName={}',
    'analogWrite' : '{}/analogWrite?pin={}&value={}&deviceName={}',
    'analogRead' : '{}/analogRead?pin={}&deviceName={}',
    'serialBegin' : '{}/serialBegin?baud={}&deviceName={}',
    'serialWrite' : '{}/serialWrite?data={}&deviceName={}',
    'serialRead' : '{}/serialRead?till={}&deviceName={}',
    'version' : '{}/version?&deviceName={}',
    'restart' : '{}/restart?&deviceName={}',
    'isAlive' : '{}/isAlive?&deviceName={}',
}

def url(operation):
    return BASE_URL+url_list[operation]

Remove the static pin fir analog read
Remove the static pin fir analog read

  BASE_URL = 'http://cloud.boltiot.com/remote/'
  
  url_list = {
      'digitalWrite' : '{}/digitalWrite?pin={}&state={}&deviceName={}',
      'digitalRead' : '{}/digitalRead?pin={}&deviceName={}',
-     'analogWrite' : '{}/analogWrite?pin=1&value={}&state={}&deviceName={}',
+     'analogWrite' : '{}/analogWrite?pin={}&value={}&deviceName={}',
      'analogRead' : '{}/analogRead?pin={}&deviceName={}',
      'serialBegin' : '{}/serialBegin?baud={}&deviceName={}',
      'serialWrite' : '{}/serialWrite?data={}&deviceName={}',
      'serialRead' : '{}/serialRead?till={}&deviceName={}',
      'version' : '{}/version?&deviceName={}',
      'restart' : '{}/restart?&deviceName={}',
      'isAlive' : '{}/isAlive?&deviceName={}',
  }
  
  def url(operation):
      return BASE_URL+url_list[operation]
  
Remove the static pin fir analog read
## Code Before:
BASE_URL = 'http://cloud.boltiot.com/remote/'

url_list = {
    'digitalWrite' : '{}/digitalWrite?pin={}&state={}&deviceName={}',
    'digitalRead' : '{}/digitalRead?pin={}&deviceName={}',
    'analogWrite' : '{}/analogWrite?pin=1&value={}&state={}&deviceName={}',
    'analogRead' : '{}/analogRead?pin={}&deviceName={}',
    'serialBegin' : '{}/serialBegin?baud={}&deviceName={}',
    'serialWrite' : '{}/serialWrite?data={}&deviceName={}',
    'serialRead' : '{}/serialRead?till={}&deviceName={}',
    'version' : '{}/version?&deviceName={}',
    'restart' : '{}/restart?&deviceName={}',
    'isAlive' : '{}/isAlive?&deviceName={}',
}

def url(operation):
    return BASE_URL+url_list[operation]

## Instruction:
Remove the static pin fir analog read
## Code After:
BASE_URL = 'http://cloud.boltiot.com/remote/'

url_list = {
    'digitalWrite' : '{}/digitalWrite?pin={}&state={}&deviceName={}',
    'digitalRead' : '{}/digitalRead?pin={}&deviceName={}',
    'analogWrite' : '{}/analogWrite?pin={}&value={}&deviceName={}',
    'analogRead' : '{}/analogRead?pin={}&deviceName={}',
    'serialBegin' : '{}/serialBegin?baud={}&deviceName={}',
    'serialWrite' : '{}/serialWrite?data={}&deviceName={}',
    'serialRead' : '{}/serialRead?till={}&deviceName={}',
    'version' : '{}/version?&deviceName={}',
    'restart' : '{}/restart?&deviceName={}',
    'isAlive' : '{}/isAlive?&deviceName={}',
}

def url(operation):
    return BASE_URL+url_list[operation]
